Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
Le 2007-05-08 à 16:50, Richard Davey a écrit : By how much is the difference? Are we talking a few bytes, a few megabytes, what? A 116Kb file produce a 68Kb file on the server. And a 152Kb file produce a 48Kb file on the server... If you then download the file again, is it corrupted, o

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 2:12 pm, Eric Trahan wrote: > $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 !)

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Richard Davey
Eric Trahan wrote: $error = $_FILES['uneimage']['error']; That doesn't seem work in PHP 4.1.2... I try it but $error is empty. It just means there wasn't an error. And the function move_uploaded_file($_FILES['uneimage']['tmp_name'], $target_path) returns TRUE, so the upload work (in a way

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
$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

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Richard Lynch
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']['t

[PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
Hi, I have a form to upload file on my web server, so user can upload their images. 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. I run Apache with PHP 4.1.2. Thank you,