表单没加:method="post"
表单没加:enctype="multipart/form-data"
还有就是提交文件域写成<input type="file" id="xxx"> 忘了提交需要name属性而让结果得不到数据,正确的格式<input type="file" name="xxx">
网站上传容易忽视的错误
最新推荐文章于 2023-11-27 17:42:58 发布
表单没加:method="post"
表单没加:enctype="multipart/form-data"
还有就是提交文件域写成<input type="file" id="xxx"> 忘了提交需要name属性而让结果得不到数据,正确的格式<input type="file" name="xxx">