|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11484 Upload Problem
Submitted: 2001-06-14 07:39 UTC Modified: 2001-06-14 13:11 UTC
From: ufuk dot kocolu at isletmekulubu dot com Assigned:
Status: Not a bug Package: *Directory/Filesystem functions
PHP Version: 4.0.5 OS: Linux REDHAT 6.2
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:
13 + 8 = ?
Subscribe to this entry?

 [2001-06-14 07:39 UTC] ufuk dot kocolu at isletmekulubu dot com
When I upload a file with copy() function or something else script adds uploaded file's mime type into uploaded file.
For example if I upload a gif file called pic.gif:
Pic.gif damages and iti includes "image/gif" at the head of the file when I open it with notepad. Then doesn't happen on my NT4.0 server but the problem is on REDHAT 6.2 machine. magic_quotes_gpc is off on server config but I tried and failed with set_magic_quotes_runtime.
Whats the problem? 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-14 13:11 UTC]
Your script is broken. Uploading works for me just fine
with PHP 4.0.5 / PHP 4.0.6RC3

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 22 09:01:25 2023 UTC