#32948 [Opn]: $HTTP_RAW_POST_DATA is empty if form's enctype="multipart/form-data"
| From: | sniper@php.net | Date: | Fri, 06 May 2005 01:02:57 +0000 |
| Subject: | #32948 [Opn]: $HTTP_RAW_POST_DATA is empty if form's enctype="multipart/form-data" | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969368182@lists.php.net to get a copy of this message | ||
ID: 32948
Updated by: sniper@php.net
Reported By: chaz_meister_rock at yahoo dot com
Status: Open
-Bug Type: HTTP related
+Bug Type: Documentation problem
-Operating System: OSX 10.3.9
+Operating System: *
-PHP Version: 5.0.4
+PHP Version: Irrelevant
New Comment:
HTTP_RAW_POST_DATA is NOT set for multipart forms.
Would be nice if this was said in the manual too.
Previous Comments:
------------------------------------------------------------------------
[2005-05-05 03:10:34] chaz_meister_rock at yahoo dot com
Description:
------------
$HTTP_RAW_POST_DATA is empty when using a form with
enctype="multipart/form-data" set.
php.ini contains
always_populate_raw_post_data = On
this issue looks similar to:
http://bugs.php.net/bug.php?id=23765
Reproduce code:
---------------
<?php
echo $HTTP_RAW_POST_DATA;
?>
<form enctype="multipart/form-data" method="post">
<input type="text" name="it" value="groovy" />
<input type="file" name="upFile" />
<input type="submit" />
</form>
Expected result:
----------------
it=groovy&upFile=
Actual result:
--------------
Notice: Undefined index: HTTP_RAW_POST_DATA
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32948&edit=1