Uploading the same image to two different folders
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.
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.
//run my query to insert into db here
$status = "<p class=\"successmsg\">Image was successfully uploaded.</p>";
$showform = false;
//GET Uploaded Image Size
list($width, $height) = getimagesize($img_name);
$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
Thanks for any help!