Jump to content

[SOLVED] Validate this input?


scorpiious

Recommended Posts

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..?

Link to comment
https://forums.phpfreaks.com/topic/67780-solved-validate-this-input/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.