当form中有文件域的时候,要设置form的enctype属性为enctype="multipart/form-data"