350000) { echo "Error: Your file is too large.
"; $ok=0; } //This is our limit file type condition if ($ext!=".jpg"&&$ext!=".gif"&&$ext!=".png"&&$ext!=".gif"&&$ext!="jpeg"&&$ext!=".psd") { echo "Error: This file type is not allowed.
"; $ok=0; } //Here we check that $ok was not set to 0 by an error if ($ok==0) { Echo "Sorry, but your file was not uploaded."; } //If everything is ok we try to upload it else { if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "The file ". basename($_FILES['uploaded']['name']). " has been uploaded here: http://seekond.com/uploads/".$r; } else { echo "Sorry, there was a problem uploading your file."; } }} else { ?>
Please choose a file: