Enctype: Specifies the encoding type used by the browser when sending data back to the server. Used to upload pictures in the form.
There are three encoding types:
application/x-www-form-urlencoded: Encode all characters before sending (default). This is the standard encoding format.
multipart/form-data: Not encoded characters, this value must be used when using a form containing a file upload control.
text/plain: The form data is encoded in plain text, without any controls or format characters.
example:
Copy the code