文件上传

文件上传:

  需要的条件:

      1,需要一个表单,有一个表单属性enctype="multipart/form-data"

            enctype:属性规定在发送到服务器之前应该如何对比表单数据进行编码

      2,表单提交方式必须为post

案例:

原文地址:https://www.cnblogs.com/erci-520/p/8697126.html