View Single Post
  #4  
Old 09-06-2008, 05:05 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

you could just use the above code, comment out the line that starts with $error.="The File... and add this line right below it:
PHP Code:
unlink($folder.$file_name[$i]); 
It would look something like this:
PHP Code:
// Check if the file already exists on the server..
} Elseif(file_exists($folder.$file_name[$i])) {

// $error.= "The file: ".$_FILES['file']['name'][$i]." exists on this server, please rename your file.<br />Your file(s) were <b>not</b> uploaded.<br />";
unlink($folder.$file_name[$i]); 
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote