Welcome Guest, Not a member yet? Register   Sign In
You did not select a file to upload.
#4

I use this detection of whether a file is going to be uploaded, it always works:

Code:
$field = 'userfile'; // The name attribute of the file input control.
$file_selected = isset($_FILES[$field]) && isset($_FILES[$field]['name']) && $_FILES[$field]['name'] != '';
Reply


Messages In This Thread
You did not select a file to upload. - by Ali - 05-17-2017, 12:38 AM
RE: You did not select a file to upload. - by ivantcholakov - 05-17-2017, 05:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB