Re: Upload problem - final size is different
| From: | Eric Trahan | Date: | Tue, 08 May 2007 19:12:56 +0000 |
| Subject: | Re: Upload problem - final size is different | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254584@lists.php.net to get a copy of this message | ||
$error = $_FILES['uneimage']['error'];
That doesn't seem work in PHP 4.1.2... I try it but $error is empty.
And the function move_uploaded_file($_FILES['uneimage']['tmp_name'], $target_path) returns TRUE, so the upload work (in a way !).
The problem is the file that is upload doesn't match the original file.
Eric.
Le 2007-05-08 à 14:04, Richard Lynch a écrit :
On Tue, May 8, 2007 11:30 am, Eric Trahan wrote:The upload work. The user file is uploaded to my destination folder (page5/) but the file is unreadable and the file size is smaller than the original file size.$tmp_name = $_FILES['uneimage']['tmp_name']; $type = $_FILES['uneimage']['type']; $name = $_FILES['uneimage']['name']; $size = $_FILES['uneimage']['size'];$error = $_FILES['uneimage']['error']; switch($error){ //There are at least 5 or 6 'case' statements that go here //read the manual to find them } --Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?