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. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to