Re: Images being uploaded in ASCII format

From: Date: Fri, 24 Oct 2003 03:00:58 +0000
Subject: Re: Images being uploaded in ASCII format
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167386@lists.php.net to get a copy of this message
Pablo Gosse wrote: > Hi Raditha. Thanks very much for your reply. I've not been having much > luck with this one. > > This is how the images should appear: > http://web.unbc.ca/~gossep/sample_images/1.gif > http://web.unbc.ca/~gossep/sample_images/nav-02.jpg > > And here is how they appear after being uploaded: > http://web.unbc.ca/~gossep/sample_images/1_uploaded.gif > http://web.unbc.ca/~gossep/sample_images/nav-02_uploaded.jpg > > The results to me seem the same as if an image were FTPed in ascii mode > instead of binary mode (or auto-detect which would ultimately set the > mode to binary). Use strings to look at the files. This: yPZ-----------------------------7d33511600b6 Content-Disposition: form-data; name="upload"; filename="C:\Documents and Settings\gossep\Desktop\ewimages\1.gif" Content-Type: image/gif GIF89a certainly doesn't belong in the image. > Apache 2.0 > PHP 4.2.2 PHP 4.2.2 is 300 years old - I'm surprised that Apache 2 existed back then. See <http://www.php.net/manual/en/install.apache2.php>. Regards... Michael

« previous php.general (#167386) next »