#23765 [Asn]: No raw post data from multipart forms

From: Date: Fri, 23 May 2003 21:18:43 +0000
Subject: #23765 [Asn]: No raw post data from multipart forms
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40316@lists.php.net to get a copy of this message
 ID:               23765
 Updated by:       pollita@php.net
 Reported By:      bugs dot php dot com at brome dot com
 Status:           Assigned
 Bug Type:         *General Issues
 Operating System: Slackware Linux
 PHP Version:      4.3.1
-Assigned To:      sniper
+Assigned To:      pollita
 New Comment:

Great! I believe I've found the problem, please send one more test to
confirm.


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

[2003-05-23 14:07:45] pollita@php.net

I've sent you via a direct email, a URL for a page which will accept
POST file upload data and store detailed request header and content
information.  Please have your camera phone send the picture to that
URL via HTTP POST upload.

Sniper-
  I'll post the results here as soon as I get them.

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

[2003-05-23 13:25:14] bugs dot php dot com at brome dot com

Unfortunately, I only have access to one server, and it hosts a busy
public site (over 4,000 pages per hour) - I can't afford downtime.

I could send you some small PHP files to test with (it requires a
4-step process - the upload is step 4) and send a request from my Nokia
3650 to your test server. Would that work?

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

[2003-05-23 13:07:23] bugs dot php dot com at brome dot com

Here is a link to the Nokia API document:

http://www.forum.nokia.com/main/1,6566,21,00.html

Please let me know if I can help or provide any other info. Thanks!

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

[2003-05-23 13:06:09] pollita@php.net

I'd like you to try recompiling PHP with upload support completely
disabled.

Look for the following line in main/php_content_types.c (it'll be near
the top) and simply comment it out or delete it entirely.

{ MULTIPART_CONTENT_TYPE, sizeof(MULTIPART_CONTENT_TYPE)-1, NULL,
rfc1867_post_handler },

Recompile like that and rerun a test using:
<?php
$fp = fopen('serverdata.txt', 'w');
fwrite($fp, serialize($_SERVER));
fclose($fp);

copy('php://input', 'logfile.txt');
?>

And show us what you get. (Though since you're uploading a picture feel
free to snip the binary data in logfile.txt down to a representative
sample)

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

[2003-05-23 12:48:21] sniper@php.net

Assigning to myself, hopefully I can loan one of those phones from a
friend.


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

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/23765

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



Thread (9 messages)

« previous php.bugs (#40316) next »