<from action="xxx.xxx" enctype="multipart/form-data"></from>

在上传文件时必须要用这个 这个就是不会进行编码的意思

 

属性值

描述
application/x-www-form-urlencoded 在发送前编码所有字符(默认)
multipart/form-data

不对字符编码。

在使用包含文件上传控件的表单时,必须使用该值。

text/plain 空格转换为 "+" 加号,但不对特殊字符编码。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-06-21
  • 2021-12-07
  • 2021-09-30
  • 2021-09-19
  • 2021-12-13
猜你喜欢
  • 2022-12-23
  • 2021-07-29
  • 2021-04-09
  • 2021-10-26
  • 2022-12-23
  • 2021-12-13
  • 2021-04-16
相关资源
相似解决方案