本文介绍了Multipart / form-data upload - Nodejs - expressjs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
由于express.multipart从Express 4.x库中删除,在expressjs中处理文件上传的最佳方式是什么?
Since express.multipart is removed from the Express 4.x library, what will be the best way to handle file upload in expressjs?
推荐答案
刚刚回覆了有关多部分的。我建议多方:
Just answered a similar question about multipart. I would recommend multiparty:
您是否已避免bodyParser,所以你是对的,以避免它,但多方似乎解决了类似的问题,为我。
The author (Andrew Kelley) recommends avoiding bodyParser, so you're right to avoid it, but multiparty seems to solve a similar issue for me.
这篇关于Multipart / form-data upload - Nodejs - expressjs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!