Hi guys,

I'm curious about a couple things

regarding: $_FILES['userfile']['error']
(On page: http://www.php.net/manual/tw/features.file-upload.errors.php )

and also

<input type="hidden" name="MAX_FILE_SIZE" value="500">

The manual says "Since PHP 4.2.0, PHP returns an appropriate error code
along with the file array. The error code can be found in the ['error']
segment of the file array that is created during the file upload by PHP. In
otherwords, the error might be found in $_FILES['userfile']['error']."

So if I get error: Value: 2; The uploaded file exceeds the MAX_FILE_SIZE
directive that was specified in the html form.

Does this mean the file was examined by the browser and it determined it was
too large OR does it have to upload the file temporarily and then check to
see if its too large?

It sounds like browser would first examine the file before it gets uploaded,
however, if I try to upload a 1mb file it takes noticably longer to produce
an error than say a 501 byte file.

Please anyone that can help me with this I would really appreciate it.

Thanks,
Nate



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to