Hi,

I'm trying to upload an image to two different directories, one for the regular image and one for the thumbnail.

It moves to the first directory just fine, but won't move it to the second.

It won't even give me an error message other than the one I specified in the ELSE.

PHP Code:
if(move_uploaded_file($_FILES['photo']['tmp_name'], $uploadimage))
            {
                if(
move_uploaded_file($_FILES['photo']['tmp_name'], $uploadthumb))
                {
                    
//run my query to insert into db here
                    
if(mysql_query($ins))
                    {
                        
$status "<p class=\"successmsg\">Image was successfully uploaded.</p>";
                        
$showform false;
                        
                        
//GET Uploaded Image Size
                        
list($width$height) = getimagesize($img_name);
                    }else
                        {
                            
$status "<p class=\"successmsg\">Image was not uploaded. (sql)</p>";
                        }
                }else
//if thumb is not uploaded
                    
{
                        
$status "<p class=\"successmsg\">Image was not uploaded. (thumb)</p>";//It gives me this message
                    
}
            } 
Is this sort of thing even possible? I need it to go to the two different folders so I can resize them after they've been uploaded.

Thanks for any help!