1. Home
  2. Computer Science MCQs
  3. PHP
  4. Before you try to process the file, you need to make sure…

Added 19 Jan 2024

Before you try to process the file, you need to make sure that your $err value is equivalent to ___.

  1. UPLOAD_ERR_OK Correct answer
  2. UPLOAD_NO_ERR
  3. UPLOAD_ERR_NO_OK
  4. UPLOAD_ERR

Correct answer

A. UPLOAD_ERR_OK

11 views

MCQSEXAM

Explanation

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.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs