[PHP] handling multipart form-data

2006-10-20 Thread Anton Statutov
DOCUMENTATION> php://input is not available with 
enctype="multipart/form-data".


What I should do if I really need to get multipart data? I want to 
implement my own form-data parser with PHP5. Can I at least turn off the 
PHP's one to be able to use php://input with multipart?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] handling multipart form-data

2006-10-24 Thread Anton Statutov

Richard Lynch wrote:

I think you want that HTTP_RAW_POST_DATA setting thingie that's in the
manual...

I tried HTTP_RAW_POST_DATA with same result as php://input did. When 
form enctype is "url-form-encoded" they both works fine, but when 
enctype is "multipart/form-data" they both are empty. I need second one 
to be able to upload files.


In this case HTTP_RAW_POST_DATA are set to "test1=&test2=&upload=" when 
you submit the form:









In this case HTTP_RAW_POST_DATA is empty:








--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php