网上查到很多的一个原因是:忘记了在form表单里将enctype设置成文件上传格式:enctype="multipart/form-data" 而另一个小细节也可能会报这个错,那就是method="get" 要改成post方式!