PHP 4.0 Bug #9336: Upload image gets mime type written to top of image file

From: Date: Mon, 19 Feb 2001 13:13:53 +0000
Subject: PHP 4.0 Bug #9336: Upload image gets mime type written to top of image file
Groups: php.dev 
Request: Send a blank email to php-dev+get-46898@lists.php.net to get a copy of this message
From: dhamdan@eng.utoledo.edu Operating system: RedHat Linux 7.0 2.2.16-22 PHP version: 4.0.4pl1 PHP Bug Type: HTTP related Bug description: Upload image gets mime type written to top of image file I'm using this code to upload file: <FORM ENCTYPE="multipart/form-data" ACTION="_URL_" METHOD=POST> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000"> Send this file: <INPUT NAME="userfile" TYPE="file"> <INPUT TYPE="submit" VALUE="Send File"> </FORM> When I go to upload on image file (or an other file for that matter), the mime type gets written to the biginning of the file, thus making the image unviewable. I installed php using the RedHat provided rpms. -- Edit Bug report at: http://bugs.php.net/?id=9336&edit=1

« previous php.dev (#46898) next »