scorpiious Posted September 3, 2007 Share Posted September 3, 2007 ok well i have this script. //Upload the file $target_path = $folder_quests; $target_path = $target_path . $number ; if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The quest $Quest has been uploaded and given id $number"; } else{ echo "There was an error uploading the quest, please try again!"; } //Done } } how can i make sure that the uploaded file is a text file..? Quote Link to comment https://forums.phpfreaks.com/topic/67780-solved-validate-this-input/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.