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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Tue Dec 06 10:03:51 2022 UTC