Hey guys, I can upload files just fine, but I have been given a new task of uploading 4 images then resizing those images and renaming them and then copying them to a folder. Plus I have to make 4 more copies of the images (A thumbnail of each one).
so if they upload 4 images I would have to go thru with each image and resize it reaname it and copy it to a folder once for the full size image and then again to make a thumbnail of it.
Here is the code I have so far...any help is appreciated.
<?php
//Image checking
Foreach($_FILES as $Image){
$ImageName = $Image['name'];
$FullPath = "/hsphere/local/home/maydev/specialeventimages/";
Copy($Image['tmp_name'],$FullPath.$ImageName);
If(!Copy) Error_Message("Unable to copy image.");
unlink ($Image['tmp_name']);
}//end if
}//end for
?>
Thanks!