Quiz Question 1 of 6
What is the practical implication of associating a FormData
object directly with a <form>
element in JavaScript when handling file uploads?
Choose the correct answer below:
-
A
It ensures the file is uploaded in a base64 format automatically.
-
B
It requires manually setting the
Content-Disposition
header to handle file uploads correctly. -
C
It simplifies the data handling by directly populating
FormData
with the form's fields, including file inputs. -
D
It allows the file input to be directly converted into a JSON object for easier processing.