异步文件上传插件:http://fex.baidu.com/webuploader/getting-started.html
html5 FormData 可以实现无刷新上传 有空了解
FileReader
jquery validate 前端验证:
https://www.runoob.com/jquery/jquery-plugin-validate.html
body-parser只能获取form标准格式提交数据
enctype="application/x-www-form-urlencoded"
现在表单中enctype="multipart/form-data"
表单中的post通过body-parser来获取将无法得到,此时可以使用另一个模块完成数据收集
安装文件上传处理模块
cnpm i -S multer
在项目中的静态资源根目录下面创建一个用于上传文件所存储的目录