php.net |  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
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:
MUST BE VALID
Solve the problem:
8 - 5 = ?
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">
</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.

Patches

Pull Requests

History

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

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 04:01:27 2024 UTC