form 表单 enctype 属性-(转自w3c)

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

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

属性值

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

不对字符编码。

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

text/plain 空格转换为 "+" 加号,但不对特殊字符编码。
原文地址:https://www.cnblogs.com/YangK-java/p/4618411.html