[Wylug-help] PHP file upload problem

Smylers Smylers at stripey.com
Tue May 24 13:33:30 BST 2005


Gary Stainburn writes:

> The problem turned out to be the MAX_FILE_SIZE in the form and not the
> value in the php.ini file.
> 
> It turns out that although Mozilla Firefox ignored it and uploaded the
> file, PHP then rejected it.

That's what's _supposed_ to happen.  So far as the web-browser is
concerned MAX_FILE_SIZE is just another hidden form field to be
submitted in the form data.  HTML has no concept of limiting upload
size, so the only place this can be trapped is on the server.

However if it's implemented correctly on the server then the rejection
should be able to take place without actually accepting all the
(oversized) uploaded data.

Smylers
-- 
May God bless us with enough foolishness to believe that we can make a
difference in this world, so that we can do what others claim cannot be done.




More information about the Wylug-help mailing list