|
Posted by Erwin Moller on 01/09/06 11:38
lawrence k wrote:
> I've a file upload script on my site. I just now used it to upload a
> small text document (10k). Everything worked fine.
>
> Then I tried to upload a 5.3 meg Quicktime video.
>
> Didn't work.
>
> I've set the POST limit in php.ini to 8 megs.
>
> What reasons, other than the POST limit, would a large upload fail?
Hi,
Some possible problems:
1) hidden input parameter in form: MAX_FILE_SIZE
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
This is just a hint to the browser. If you do not use it, then don't worry.
If you do, check the value.
2) upload_max_filesize in php.ini
This directive also has influence on max size.
and of course the POST-limit, but you found that one already.
Check this out:
http://nl3.php.net/manual/en/ini.core.php#ini.upload-max-filesize
It describes the whole process.
Hope that helps.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|