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:

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??


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

[2005-05-26 04:42:15] webnerd at comcast dot net

Could it be an Apache 2 handler problem?

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

[2005-05-26 00:01:28] [EMAIL PROTECTED]

On second thought: This is not PHP bug.


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

[2005-05-25 23:59:35] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



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

[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