note 39057 added to function.move-uploaded-file

From: Date: Thu, 15 Jan 2004 15:50:45 +0000
Subject: note 39057 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-63627@lists.php.net to get a copy of this message
When uploading JPEGS i found move_uploaded_file($tmp_path,$destination_path); Caused the resulting JPEG not to load properly althought the file was the correct file size , i solved the problem by using this instead: if (is_uploaded_file($tmp_path)) { copy ($tmp_path, $destination_path) } I was running PHP 4.3.1 ---- Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39057 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39057&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39057&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63627) next »