You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const readStream =this._gridfs.createReadStream(file.filename);
readStream.on('error',(error)=>{
resp.send('No Image from that title!');
resp.end();
})
readStream.pipe(resp);
code like these, when only set up the readStream with filename, it will throw error ,
this._store = new grid.mongo.GridStore(grid.db, this.id || new grid.mongo.ObjectID(), this.name, this.mode, options);
when I debug, I found grid.mongo.ObjectID is undefined
The text was updated successfully, but these errors were encountered:
const readStream =this._gridfs.createReadStream(file.filename);
readStream.on('error',(error)=>{
resp.send('No Image from that title!');
resp.end();
})
readStream.pipe(resp);
code like these, when only set up the readStream with filename, it will throw error ,
this._store = new grid.mongo.GridStore(grid.db, this.id || new grid.mongo.ObjectID(), this.name, this.mode, options);
when I debug, I found grid.mongo.ObjectID is undefined
The text was updated successfully, but these errors were encountered: