Page 1 of 1

file input not accepting videos

Posted: Thu May 12, 2011 12:32 pm
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.

Re: file input not accepting videos

Posted: Fri May 13, 2011 2:09 pm
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.

Re: file input not accepting videos

Posted: Mon May 16, 2011 12:23 pm
by atrichtch
Thanks, that worked.