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

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

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

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2021-09-16
  • 2021-10-29
  • 2022-01-23
  • 2021-05-09
  • 2022-12-23
  • 2021-06-24
猜你喜欢
  • 2021-04-26
  • 2021-11-01
  • 2022-03-08
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案