Khargesh Rajput

Khargesh Rajput

  • NA
  • 5.6k
  • 602.8k

How to get video duration in file upload

Jan 16 2015 5:01 AM
How to to get video file duration in seconds or any timespan without play when we upload the video using file upload

and what it means

 if (htmlFile.PostedFile.ContentLength > 0)
        {

            string sFormat = String.Format("{0:#.##}", (float)htmlFile.PostedFile.ContentLength / 2048);