I am trying to get a simple upload page to work and one of the problems I am having is checking to see if the file already exists.
Code: Select all
Currently using:
if (!is_uploaded_file($userfile))
{
$error="Upload Problem: possible file attack.";
echo "<font class=maintext>$error</font>";
exit;
}Or is this not really the best way to check for an existing file before uploading?
Thanks - Steve