From:             krudtaa at yahoo dot com
Operating system: Windows XP Pro
PHP version:      5.2.0
PHP Bug Type:     HTTP related
Bug description:  cancel_upload parameter get wrong value when using multi 
field upload form

Description:
------------
When using the new APC_UPLOAD_PROGRESS feature and
if you make a multi file upload_form and do not fill out all of the file
fields then the
cancel_upload parameter get a value of 4 and the the whole upload is
reported as:

Cancelled after 109300234 bytes

even if the upload actually was a success.



Reproduce code:
---------------
Download this source:
http://progphp.com/progress.phps

which I found at:
http://talks.php.net/show/torkey06/24

then change the upload_form so it have more than one upload
field.

I entered three fields like this:

<input type="file" name="test_file[]"/><br/>
<input type="file" name="test_file[]"/><br/>
<input type="file" name="test_file[]"/><br/>

Expected result:
----------------
I would like to see PHP, or the APC extension (do not know which one
causes the error) not raise any errors when some of the file fields are
not filled out.

Actual result:
--------------
cancel_upload parameter should get value of 0 and not 4.

-- 
Edit bug report at http://bugs.php.net/?id=39427&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39427&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39427&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39427&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39427&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39427&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39427&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39427&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39427&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39427&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39427&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39427&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39427&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39427&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39427&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39427&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39427&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39427&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39427&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39427&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39427&r=mysqlcfg

Reply via email to