post文件上傳 multer 中間件 在node中 express為了性能考慮采用按需加載的方式,引入各種中間件來完成需求, 平時解析post上傳數據時候,是用body-parse。但這個中間件有缺點,只能解析post的文本內容,(application/x-www-form-urlencoded)不能接受post上的文件。接收post上傳的文件(multer/from-data),所以需要借助multer中間件。
轉載于:https://www.cnblogs.com/l8l8/p/9092590.html