Quote:
// Check if file already exists
if (file_exists($target_file)) {
//echo "Sorry, file already exists.";
//$uploadOk = 0;
rename($target_file, 'your_new_filename');
}
|
This is working however, its not creating a clickable image when I browse the image upload directory, could anyone point me in the right direction about how to get it to rename AND be a valid clickable image please when viewed in the directory itself?
I've tried this, which i thought would work but didnt:
[quote]
$imageFileType rename(2.'$imageFileType');
[quote]
