note 85247 added to features.file-upload
| From: | RK at osu1 dot php dot net | Date: | Thu, 21 Aug 2008 20:48:44 +0000 |
| Subject: | note 85247 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143723@lists.php.net to get a copy of this message | ||
If you're so inclined to get access to the http request body via php://input when the
content-type is multipart/form-data, and you're running apache, this hack may be helpful:
.htaccess
SetEnvIf content-type (multipart/form-data)(.*) NEW_CONTENT_TYPE=multipart/form-data-alternate$2
OLD_CONTENT_TYPE=$1$2
RequestHeader set content-type %{NEW_CONTENT_TYPE}e env=NEW_CONTENT_TYPE
Obviously, this will bypass all of PHP's file handling, as if you had set file_uploads=0,
except that the request body wont be discarded. I can't comment on the consequences/pitfalls,
since I'm just messing around.
----
Server IP: 69.147.83.197
Probable Submitter: 96.57.194.157
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- https://master.php.net/note/edit/85247
Del: integrated -- https://master.php.net/note/delete/85247/integrated
Del: useless -- https://master.php.net/note/delete/85247/useless
Del: bad code -- https://master.php.net/note/delete/85247/bad+code
Del: spam -- https://master.php.net/note/delete/85247/spam
Del: non-english -- https://master.php.net/note/delete/85247/non-english
Del: in docs -- https://master.php.net/note/delete/85247/in+docs
Del: other reasons-- https://master.php.net/note/delete/85247
Reject -- https://master.php.net/note/reject/85247
Search -- https://master.php.net/manage/user-notes.php