文件上传html

html文件上传有两种方法,一种是单文件上传,还有是多文件上传

单文件:<input type="file" name="" >

多文件: <input type="file" multiple>

如果文件上传放在表单里,也就是form里  那么method一定是post,  还有 enctype=“multipart/form-data”

原文地址:https://www.cnblogs.com/chaogehahaha/p/15770103.html