|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: ufuk dot kocolu at isletmekulubu dot com
New email:
PHP Version: OS:


 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 19:01:38 2024 UTC