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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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">
</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 26 10:01:29 2024 UTC