Hi All! I need to upload image files to our server. I used the sample code from http://www.php.net/features.file-upload. When I tested the script, I was able to upload the .gif file in the /tmp folder and was able to move it to the directory that I specified. The problem is when I tried viewing the uploaded image, it wasn't complete! (Sometimes, only half of the image appears and sometimes, it doesn't even display anything!) Also, the file size of my original image is different from the one that I uploaded. What could be causing this? Do I need to fix some configuration files?
Any help would be appreciated. Thanks in advance! ^_^
File Upload Problem
Moderator: General Moderators
/tmp folder
hmmm. after uploading, i use the function move_uploaded_file and then when i check the image file, it's corrupted. any suggestions? i already did everything that the user notes suggested (check upload_max_filesize and post_max_size, even added the entry that sets the LimitRequestBody in httpd.conf and restarted apache) but it still wouldn't work. has anyone encountered this problem?
thanks feyd and again, thanks in advance. ^_^
thanks feyd and again, thanks in advance. ^_^