Situation one: Do not set enctype
HTML content
<formAction= "02upload.ashx"Method= "POST"> <inputtype= "File"name= "txt" /> <inputtype= "Submit"value= "Upload"/></form>
Request header (The length of the report style, and the type of the newspaper style)
The style of requesting newspaper
Scenario Two: Setting the Enctype property
HTML content
<Body> <formAction= "02upload.ashx"Method= "POST"enctype= "Multipart/form-data"> <inputtype= "File"name= "txt" /> <inputtype= "Submit"value= "Upload"/> </form></Body>
Request Request Header
The style of requesting newspaper
Come to the conclusion
1.form If you do not add the Enctype property, only the file name is uploaded The Enctype default property value for 2.form is application/x-www-form-urlencoded |
-----------------------------------Split Line----------------------------------------------------------------------------------- ----------
There is a do not understand, keep the first, later know the complement, which friends know, you can tell me
The message I uploaded is only 10KB, but in two uploads, one accounted for 61bit and one 216bit. It's not going to count.
HTML Learning-file Control Learning