PHP 4.0 Bug #8958 Updated: File uploads append Content-Type string

From: Date: Sun, 04 Feb 2001 17:40:04 +0000
Subject: PHP 4.0 Bug #8958 Updated: File uploads append Content-Type string
Groups: php.dev 
Request: Send a blank email to php-dev+get-45731@lists.php.net to get a copy of this message
ID: 8958 Updated by: sniper Reported By: medvitz@medvitz.net Old-Status: Open Status: Feedback Bug Type: Unknown/Other Function Assigned To: Comments: I can not reproduce this with latest CVS. Please try latest CVS snapshot from http://snaps.php.net/ --Jani Previous Comments: --------------------------------------------------------------------------- [2001-01-28 15:29:53] medvitz@medvitz.net 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..... --------------------------------------------------------------------------- [2001-01-27 20:50:26] mrobinso@php.net Please provide a short snippet of code that reproduces this effect. --------------------------------------------------------------------------- [2001-01-27 18:20:35] medvitz@medvitz.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 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8958&edit=2

« previous php.dev (#45731) next »