Html form provides basic knowledge to upload files,
Form is used to submit a file and the entype attribute needs to be modified.
Enctype attribute: Specifies how to encode the form data before sending it.
By default, the encoding format of enctype is application/x-www-form-urlencoded and cannot be used for file upload;
To upload a file, you must change the encoding method to multipart/form-data.
The following describes the values of the enctype attribute:
Application/x-www-form-urlencoded:[Default] encode all characters before sending (space is converted to "+" plus sign, and special characters are converted to ascii hex values)
Multipart/form-data:Character encoding is not supported. This value must be used when using a form that contains a file upload control.
Text/plain: Space is converted to "+" plus sign, but not special character encoding.