Reputation: 1395
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
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