ID:               33143
 User updated by:  webnerd at comcast dot net
 Reported By:      webnerd at comcast dot net
 Status:           Open
 Bug Type:         HTTP related
 Operating System: RedHat Linux 2.6.9 Apache 2
 PHP Version:      4.3.11
 New Comment:

I have read another user's comments on this issue and still don't see
the purpose of the MAX_FILE_SIZE since the browser does not read it and
PHP doesn't read it until after Apache has received the Post data.


Previous Comments:
------------------------------------------------------------------------

[2005-05-26 04:46:01] webnerd at comcast dot net

Am I incorrect to assume that a PHP Warning will cause the POSTED file
to discontinue being posted?  The PHP documentation states:

"This is an advisory to the browser, PHP also checks it"

But PHP does nothing with the larger upload attempt besides log a
warning in the error log and continue the upload??

------------------------------------------------------------------------

[2005-05-25 22:12:41] webnerd at comcast dot net

Description:
------------
Server still tries to upload files larger than MAX_FILE_SIZE when
submitted through form.  display_errors is turned off but the error log
shows within seconds of attempt:

PHP Warning:  MAX_FILE_SIZE of 1000 bytes exceeded

but browser window does not stop trying to load the file.  This is been
tested in IE and Firefox with the same results.


Reproduce code:
---------------
To reproduce, please check the following URL:

http://www.kyouradio.com/tmpup/progressbartest.php

Expected result:
----------------
Upon submitting a file, a window will popup that will immediately
resize to show a status-bar effect.  The new window then issues a
Javascript command to change the MAX_FILE_SIZE value to 60MB and then
forces the main form to submit. The "popup" window performs as an
upload progress bar.

Actual result:
--------------
Once clicking submit, the new window opens but "hangs" while the server
tries to parse the file input, however, the following shows up in the
error log:

PHP Warning:  MAX_FILE_SIZE of 1000 bytes exceeded

The new window eventually resizes but the timing between the POST and
the resize tells me that the server has not stopped trying to process
the upload to the popup window. Which in turn, results in 2 upload
attempts of really large files.





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33143&edit=1

Reply via email to