From:             webnerd at comcast dot net
Operating system: RedHat Linux 2.6.9 Apache 2
PHP version:      4.3.11
PHP Bug Type:     Scripting Engine problem
Bug description:  max_file_size hangs post

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 bug report at http://bugs.php.net/?id=33143&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33143&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33143&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33143&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33143&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33143&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33143&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33143&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33143&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33143&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33143&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33143&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33143&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33143&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33143&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33143&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33143&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33143&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33143&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33143&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33143&r=mysqlcfg

Reply via email to