I'm seeing a very strange problem with move_uploaded_file(...). I'm uploading jpegs and the transfer appears to go a little too quickly, and when I look at the directory listing, the files are about twice the size that they should be. When we view the file in the browser, the images are either mangled or appear incomplete. Sometimes the bits seem to be scrambled and other times it appears that only the first 1/4 or so of the image is complete. I can ftp the files to the same folder and they are uploaded without any problem. Another odd thing is that the permissions on the files are set to -rw------- and owned by apache. I can do a chmod on them to get them readable, but chown doesn't appear to work to change ownership.
I'm using a multipart/form-data form with a MAX_FILE_SIZE of 1MB, which should be plenty.
We're using PHP 4.2.2, Apache 2.0.40, and Red Hat Linux 9 (Shrike). Has anyone encountered such a thing before? We're going to upgrade PHP from 4.2.2, but I wasn't able to find any documented bugs with that version relating to this issue.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php