|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: dhamdan at eng dot utoledo dot edu
New email:
PHP Version: OS:


 [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: Tue Apr 23 05:01:28 2024 UTC