0

the doc of native mongoDB driver about gridfs is just push a local file to gridfs,

http://mongodb.github.io/node-mongodb-native/2.1/reference/gridfs/streaming/

how do I get the file submitted by multipart/form-data form of ajax ?

Littlee
  • 3,791
  • 6
  • 29
  • 61
  • Have you tried something so far? – Emanuel Vintilă Feb 23 '16 at 06:43
  • @PsioniaX I have not do file system work before, I was thinking about upload the file through 'multer' or something to store the file in server first and then use the path after uploading to push it into gridfs, is it a practical way? – Littlee Feb 23 '16 at 07:03

0 Answers0