In a form, what should the enctype attribute be set to for uploading files?
- text/plain
- application/json
- multipart/form-data
- application/x-www-form-urlencoded
The enctype attribute in an HTML form should be set to multipart/form-data when you want to allow file uploads. This encoding type is used for sending binary data, like files.
Loading...