corrupt images

From: Date: Tue, 27 May 2003 19:03:54 +0000
Subject: corrupt images
Groups: php.general 
Request: Send a blank email to php-general+get-149156@lists.php.net to get a copy of this message
Hi all. I've been struggling with getting images to upload cleanly. I'm using php 4.2.2. When I look at the uploaded file info, it gives me no errors and the file size is fine. But the picture is all messed up. I'm using the move_uploaded_file function. The max size is 8mb in php.ini, and I set the MAX_FILE_SIZE in the form to 100k. None of the images I'm testing have been over 30k. I've seen that some people have had this problem, but a solution hasn't been consistent. Some said to use copy() and some said it's a bug in PHP. If anyone knows what's going on I'd appreciate some advice. Thanks! -jason

« previous php.general (#149156) next »