Well after searching quite a bit all I could come up with is how to specify the file extentions that you want uploaded. My question is, how can I specify what file types I don't uploaded?
<?php
$uploadDir = 'uploads/';
$uploadFile = $uploadDir . $_FILES['userfile']['name'];
print "<pre>";
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadFile))
{
print "File is valid, and was successfully uploaded. ";
print "Here's some more debugging info:\n";
print_r($_FILES);
}
else
{
print "Possible file upload attack! Here's some debugging info:\n";
print_r($_FILES);
}
print "</pre>";
?>
<html>
<head>
<meta http-equiv="refresh" content="5;url=upload.php">
</head>
<body><p>
Redirecting to <a href="upload.php">Upload</a>
</body>
</html>
Thanks