upload corrupts images
| From: | Filippo Veneri | Date: | Thu, 07 Mar 2002 17:05:31 +0000 |
| Subject: | upload corrupts images | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87669@lists.php.net to get a copy of this message | ||
When i upload an image file (i.e. a jpeg) to the server
using php, it gets corrupted. Indeed the GIMP is no
longer able to open it.
Opening the uploaded file with a text editor i found that
the following 2 lines were added at the top (as displayed by
vim, my text editor):
Content-Type: image/jpeg^M
^M
This happens on my yellowdog (a redhat 7.1
derived powerpc based distro) linux box, with version 4.0.4pl1
of php. On the other hand, on a i386 debian machine vith
php 4.0.3pl1 everything works fine.
Is this a known bug/issue?
Thasks,
fbv