表单没加:method="post"
表单没加:enctype="multipart/form-data"
还有就是提交文件域写成<input type="file" id="xxx"> 忘了提交需要name属性而让结果得不到数据,正确的格式<input type="file" name="xxx">
表单没加:method="post"
表单没加:enctype="multipart/form-data"
还有就是提交文件域写成<input type="file" id="xxx"> 忘了提交需要name属性而让结果得不到数据,正确的格式<input type="file" name="xxx">