The enctype attribute of the FORM element specifies the encoding type used when the form data is submitted to the server. The default value is "application/x-www-form-urlencoded". This encoding method will urlencode the content before the form is sent. (Spaces are converted to "+", and special characters are converted to ASCII HEX values). For example, in the form field Fill in bb for firstname,, The result before sending is: bb+%2C%2C However, this encoding is inefficient when sending large amounts of text, text containing non-ASCII characters, or binary data to a server. When uploading files, the encoding type used should be "multipart/form-data", which can send both text data and binary data upload. The ENCTYPE attribute value of the <form> form on the browser side is multipart/form-data, which tells us that the transmitted data must use the multimedia transmission protocol. Since multimedia transmission involves large amounts of data, the uploaded file must be the post method, and the type attribute of <input> must be file. |
<<: Briefly describe the use and description of MySQL primary key and foreign key
>>: Get the calculated style in the CSS element (after cascading/final style)
1. Introduction Vagrant is a tool for building an...
Preface This article mainly introduces the releva...
Managing disk space is an important daily task fo...
Component Basics 1 Component Reuse Components are...
A while ago, I wrote a blog post titled "Can...
The first line of a Docker image starts with an i...
1. Environment Ubuntu 16.04 running on a virtual ...
This article shares the specific code of JavaScri...
Simple function: Click the plug-in icon in the up...
Table of contents 1. Installation and operation o...
Table of contents 1. Startup management of source...
This article mainly introduces the deployment of ...
background In the early stages of learning Japane...
Nginx can use its reverse proxy function to imple...
The vue project built with cli3 is known as a zer...