ID:               26004
 Comment by:       schefer at webdessert dot ch
 Reported By:      jacknorton101 at hotmail dot com
 Status:           No Feedback
 Bug Type:         *General Issues
 Operating System: RedHat Linux 9
 PHP Version:      4.3.3
 New Comment:

To correct my above message:

Post the form with method GET does not work, setting the post_max_size
in php.ini higher than the size of the uploaded file did the trick.


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

[2008-03-05 14:43:40] schefer at webdessert dot ch

I have experienced the same problems with PHP 5.2.4 on Windows. The
solution was to specify the forms method as GET, and not as POST. It
worked as well by not specifying any method, as this will choose GET as
the default method.

Use it like this:
<form action="myFile.php" enctype="multipart/form-data" method="GET">
 <input type="hidden" name="foo" value="bar" />
 <input type="file" name="file" />
 <input type="submit" value="Upload" />
</form>

print_r($_GET) results in:

Array ( [foo] => bar [file] => abc.zip )

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

[2008-02-12 13:42:05] sri dot www at gmail dot com

I am facing the similar problem. when i upload a file having more than
the size specified in post_max_size variable, the $_POST variables are
empty after form submission. If i increase the post_max_size variable
more than the file trying to be uploaded then i can get the $_POST
variables array.

Is there any other way to fix this without relaying php configuration
variables in order to get the $_POST variables as it is?

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

[2008-02-11 17:17:06] w dot antonia at beacon dot e-sussex dot sch dot
uk

Apache 2.2.4 and PHP 5.2.4 SuSE 10.3

Problems uploading files

With enctype="multipart/form-data": $_POST variable set but contains no
array keys.

print_r(array_keys($_POST));

Prints: Array()

Without enctype="multipart/form-data": $_POST variable set and contains
array keys, but no file data as expected for upload.

Help.

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

[2008-01-25 00:06:20] jareeq at op dot pl

Same problem in apache 2.2.8 , php 5.2.4 on the begining i'v suspected
mod_auth_sspi instaled on my apache but after disabling it error still
appears.
Behaviour is strange - if wait aprox 10s betwen submits of form all
works fine fast submit of form immediately after it appears generates
this problem. The same issue on apache 2.2.8 on windows/linux (XP pro
and slackware), `enctype="multipart/form-data"` include - don't matter.
Additionaly tested on windows IIS 5.1 with the same configuration
(php.ini) of PHP (isapi module)- no problem.

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

[2008-01-17 21:26:10] emmcmahon at comast dot net

I just experienced this problem NOT using enctype="multipart/form-data"
- although I have data being passsed simultaneously with Adobe Spry.  I
used the recent solution <input type="hidden" name="MAX_FILE_SIZE"
value="50000000"> worked for me.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/26004

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

Reply via email to