The Enctype property of the form element specifies the type of encoding to be used when the form data is submitted to the server, and the default value is "application/x-www-form-urlencoded".
However, this encoding is inefficient when sending large amounts of text to the server, including text or binary data that contains non-ASCII characters.
When a file is uploaded, the type of encoding used should be "Multipart/form-data", which can either send text data or support binary data uploads.
Browser end
The Enctype property value of the form is Multipart/form-data, which tells us that the transmitted data should be used in the multimedia transmission protocol, because the multimedia transmission is a lot of data, so the requirement to upload the file must be the Post method, The type attribute must be file.
http://www.bkjia.com/PHPjc/486559.html www.bkjia.com true http://www.bkjia.com/PHPjc/486559.html techarticle The enctype property of the form element specifies the type of encoding to be used when the form data is submitted to the server, and the default value is "application/x-www-form-urlencoded". However, in the to server ...