file input not accepting videos

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
atrichtch
Forum Newbie
Posts: 18
Joined: Sun Apr 03, 2011 4:57 pm

file input not accepting videos

Post by atrichtch »

The following code fails to transfer video files, although works fine for HTML and Word documents. Anything special about video format (.flv, .wmv)?

Code: Select all

<form enctype="multipart/form-data" action="video_upload_go.php" method="POST">
Choose a file to upload: <input name="uploadedfile" type="file" maxlength="1000000000"/><br />
<input type="submit" value="OK" />
</form>
Thanks.
User avatar
tr0gd0rr
Forum Contributor
Posts: 305
Joined: Thu May 11, 2006 8:58 pm
Location: Utah, USA

Re: file input not accepting videos

Post by tr0gd0rr »

If you upload a file that is too big for PHP, it may silently fail. Check upload_max_filesize and post_max_size in php.ini. PHP.net's commont pitfalls page.
atrichtch
Forum Newbie
Posts: 18
Joined: Sun Apr 03, 2011 4:57 pm

Re: file input not accepting videos

Post by atrichtch »

Thanks, that worked.
Post Reply