文件上传协议说明(POST请求体说明)

1、有一个form标签,method必须是post请求
2、要有文件上传域 input type=file
3、form标签的属性enctype值必须为multipart/form-data

enctype属性值为multipart/form-data的时候,表示告诉浏览器在表单提交的时候,
把表单项的每一个数据,都分成为一段来处理,然后封装到一起再以流的形式发送给服务器。

文件上传协议说明(POST请求体说明)