php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14680 Upload Files with problem
Submitted: 2001-12-24 00:51 UTC Modified: 2002-01-14 02:09 UTC
From: griffey at mail dot hmjh dot tyc dot edu dot tw Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.6 OS: Red Hat 7.0
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: griffey at mail dot hmjh dot tyc dot edu dot tw
New email:
PHP Version: OS:

 

 [2001-12-24 00:51 UTC] griffey at mail dot hmjh dot tyc dot edu dot tw
I use Red Hat 7.0+PHP 4.06 to write a web page to let the users can upload files to the server.
The files are successfully uploaded to the server,but the files are added words "Content-Type: application/octet-stream" in the head of the files.The words make the files such as MS-word , MS-excel to be coded badly.How can I solve it ?

copy($filename,"/var/www/html/data/upload/board/$targetfile");


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-24 08:20 UTC] sander@php.net
Likely to be a problem with the browser. Which browser do you use?
 [2002-01-14 02:09 UTC] lobbin@php.net
No feedback, closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 16:01:31 2024 UTC