Re: Please help - File Uploads, 2nd try
| From: | Koncz Ádám | Date: | Sun, 25 Feb 2001 01:01:20 +0000 |
| Subject: | Re: Please help - File Uploads, 2nd try | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41527@lists.php.net to get a copy of this message | ||
As Ed Lazor wrote:
> I upgraded my web server and now file uploads don't work. A test script
is
> listed below. It puts the file on the server, but the file has
> Content-Type: image/pjpeg^M
> ^M
> pre-pended to it, thus breaking the file. Do you know why it's doing this
> and how to fix it?
That's a php 4.0.4pl1 BUG.
To find a _possible_ patch visit:
http://bugs.php.net/bugs.php?id=8995
AND use trim() to remove unwanted linebreaks (appear in the front of the
var. values)!