multipart/form-data
| From: | Michael Ridinger | Date: | Thu, 01 Feb 2001 16:34:37 +0000 |
| Subject: | multipart/form-data | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-1865@lists.php.net to get a copy of this message | ||
I've just upgraded my Linux 7 server with PHP 4.0.4 pl1. Before the upgrade, I was using version 3.??? (can't remember exact version). I used the standard file-upload form that looked like the following:
<form action="$PHP_SELF" method=post enctype=multipart/form-data>
. . .
</form>
When the file (and other fields) are uploaded, the are prepended with a CR and LF. When I view the results in lynx, it shows the entire header information .. "Content-type: text/html . . . .". Essentially, I seem to be getting raw data returned to the browser.
Is this a change in PHP4? This doesn't happen when I move my script to a PHP3 server. I've searched the archives but didn't find this particular problem.
Thanks,
Michael Ridinger