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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Mar 29 06:01:29 2024 UTC