|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9336 Upload image gets mime type written to top of image file
Submitted: 2001-02-19 08:13 UTC Modified: 2001-02-20 05:57 UTC
From: dhamdan at eng dot utoledo dot edu Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.4pl1 OS: RedHat Linux 7.0 2.2.16-22
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
42 + 40 = ?
Subscribe to this entry?

 [2001-02-19 08:13 UTC] dhamdan at eng dot utoledo dot edu
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">

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-20 05:57 UTC]
This should be fixed in CVS. Please try a CVS snapshot from
and if that doesn't work reopen this bug report.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 01:01:33 2024 UTC