|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-01-27 18:20 UTC] medvitz at medvitz dot net
Doing file uploads with php 4.0.4pl1 on RH7 (RedHat RPMs) appends the Content-Type: xxxx/xxxxx line to the top of the files. -- Medvitz PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 10:00:02 2025 UTC |
Being that it happens to every file uploaded, I don't know how helpful this will be but...... $file = $HTTP_POST_FILES['file']['tmp_name']; $file_name = $HTTP_POST_FILES['file']['name']; @mkdir("../Images/new/$owner",0775); copy($file,"../Images/new/$owner/$file_name"); Now, the file created has the Content-type: xxx/xxxxx plus an additional blank line at the top of the file.....