From:             a dot schilder at gmx dot net
Operating system: Windows XP SP2
PHP version:      5.1.0RC1
PHP Bug Type:     HTTP related
Bug description:  Upload of a big file fails and destroy post data

Description:
------------
I'm working on a simple file upload form, which works fine for small
files. Then I tried to upload files larger than 'upload_max_filesize' (set
to 10M) with a file about 21MB to test the error codes in
$_FILES['fieldname']['error'].

When submitting the form, the $_POST and $_FILES arrays are empty,
although there are other post data in the form (e.g. the session - but I
switch to cookies, so I could test it).

It doesn't make a difference which file type I choose or if I add the
hidden MAX_FILE_SIZE field or not.

More info:

There is no error in the apache logfiles.
'file_uploads' is 'On'
'post_max_size' is '10M'

Reproduce code:
---------------
A form similar to the one I use:

<form action="photo.php" method="POST" enctype="multipart/form-data"
accept-charset="UTF-8">
<input type="file" name="photo_file" />
<input type="hidden" name="some_post_data" />
<input type="submit" />
</form>

Expected result:
----------------
Date in the $_POST array and the $_FILES array, including the correct
error code.

Actual result:
--------------
Empty $_POST and $_FILES arrays.

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

Reply via email to