Re: Upload problem - final size is different

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$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?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux