Before you try to process the file, you need to make sure that your $err value is equivalent to ___.
Correct answer
A. UPLOAD_ERR_OK
11 views
A. UPLOAD_ERR_OK
11 views
Process the file, you need to make sure that your $error value (assuming you are referring to the $_FILES['fileToUpload']['error'] value) is equivalent to UPLOAD_ERR_OK. The constant UPLOAD_ERR_OK is used to check if the file upload was successful without any errors.
Not sure why the answer is A? Ask here and get an explanation.