Click here to Skip to main content
15,892,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what can i use either $_post['f_nm']['name'] or $_post['f_nm']['tmp_name'] in file blnck validation in php??
Posted

1 solution

Before any other check you must see if you got a file at all...
PHP
if ($_FILES['f_nm']['error'] === UPLOAD_ERR_OK) {
   // here you have some file to check for...
}

For all the options you have a pretty help page here: http://php.net/manual/en/features.file-upload.php[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900