是我的文件上傳代碼 /** Setting up storage using multer-gridfs-storage */
var storage = GridFsStorage({
gfs : gfs,
filename: function (req, file, cb) {
var datetimestamp = Date.now();
我試圖將數據插入到MongoDB的3.4 GridFS的存儲通過一個彈簧啓動的應用程序啓用身份驗證,但我不斷收到此錯誤: Query failed with error code 13 and error message 'not authorized on user to execute command { find: \"fs.files\", filter: { metadata.field
我有知道當循環結束的問題, app.post('/api/books', upload.array('images'), function(req, res) {
let book = req.body.book;
let arr = [];
// GridFS get connection with DB
var gfs = gridfsstream(c