Hi, my code for my uploading is unsecure, how would I fix it so that I can prohibit files with certain extensions to be uploaded?
$target = "uploaded/";
$target = $target . basename( $_FILES['uploaded']['name']) ;
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded to <a href='uploaded/'>here.</a>";
echo "Sorry, there was a problem uploading your file.";