|
Posted by lawrence k on 01/20/06 22:34
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?
Wow. Thanks to Steve, john.d.mann@sbcglobal.net, Geoff Muldoon and
Erwin Moller for all the great replies. So, to summarize, these are the
things I should check:
1.) The binary file gets converted to ASCII, which will be bigger than
the binary, so a 6 meg binary could potentially be bigger than the 8
meg POST limit set in php.ini.
2.) The script time-out limit. My long upload might be taking too
long? I set the time out to 90 seconds in php.ini. Does that really
cut off uploads? That doesn't make sense to me. Lots of people have the
time out set to 30 seconds. For people on dial up modems, there would
be no way to upload even moderate size files, if the time out kills the
upload.
3.) Also, if using PHP on Apache (I am) check that the httpd.conf
settings aren't
lower than your PHP settings.
Thanks. I'll check these in order.
Navigation:
[Reply to this message]
|