saadlulu
saadlulu

Reputation: 1395

limit users from uploading long video files

I have a website that host videos, I was wondering if there is a way to prevent users from uploading a video file thats length is longer than 10 minutes before sending it to the server. Am using SWFupload.

Thanks

Upvotes: 0

Views: 407

Answers (1)

Evan Mulawski
Evan Mulawski

Reputation: 55334

SWFUpload has a file_size_limit property that can be set via Javascript:

http://demo.swfupload.org/Documentation/

Unfortunately, there is no way to check the video duration until it is uploaded.

EDIT

Using FFMPEG (PHP), you can determine the video duration:

http://ffmpeg-php.sourceforge.net/

Upvotes: 1

Related Questions