Upload file to mongodb natively (file size under 16mbs)

问题内容:

I’d like to do this without gridfs if at all possible as file sizes are very small (in the 50kbs ballpark.)

I have a simple <input type="file" name="upload"> in my html. How can I process this on the backend (using Node/Express) and save the file into the database?

问题评论:

    
use this module: npmjs.com/package/multer

原文地址:

https://stackoverflow.com/questions/47752570/upload-file-to-mongodb-natively-file-size-under-16mbs

添加评论

友情链接:蝴蝶教程