原因:忘记了在form表单里将enctype设置成文件上传格式:enctype="multipart/form-data" 转载于:https://www.cnblogs.com/kaixin110/archive/2010/04/15/1712486.html