1. Home
  2. Computer Science MCQs
  3. PHP
  4. When you’re uploading files you need to set the enctype of…

Added 19 Jan 2024

 When you’re uploading files you need to set the enctype of the form to ___.

  1. text
  2. text/file
  3. multipart/form-data Correct answer
  4. multimedia/form-data

Correct answer

C. multipart/form-data

16 views

MCQSEXAM

Explanation

When you are uploading files through a form in HTML, you need to set the enctype attribute of the <form> element to "multipart/form-data". This is necessary because file uploads require a different encoding type to handle binary data such as images, documents, etc.

Doubts & discussion

Not sure why the answer is C? 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