Moving uploaded image tmp file problem

From: Date: Wed, 20 Oct 2004 22:41:20 +0000
Subject: Moving uploaded image tmp file problem
Groups: php.general 
Request: Send a blank email to php-general+get-199951@lists.php.net to get a copy of this message
Hello, I wonder if someone has ran into a problem similar to or related to this before. I have a rather large form that, among other things, allows the user to upload 2 images, one small, the other slighly larger. They upload just fine, they show up in the $_FILES array, and I do error checking on them which seems to pass. Then I move them with the following code: $thumbPath = $GLOBALS["dvdimgpath"].$_POST["gameId"]."_thumb.jpg"; $fullPath = $GLOBALS["dvdimgpath"].$_POST["gameId"]."_full.jpg"; if ($DEBUG) echo "Thumb image uploaded to ".$thumbPath."<br />\n"; if (!move_uploaded_file($_FILES["thumbImage"]["tmp_name"], $thumbPath)) { echo "Image file could not moved to the images dir. Please try again"; } if ($DEBUG) echo "Full image uploaded to ".$fullPath."<br />\n"; if (!move_uploaded_file($_FILES["fullImage"]["tmp_name"], $fullPath)) { echo "Image file could not moved to the images dir. Please try again"; } The images are not there when I go to look for them in the destination directory. Any suggestions or ideas? Thanks.

« previous php.general (#199951) next »