Question about gridfs-stream -> GridFSBucket migration
See original GitHub issueIs there anything in particular to check for when migrating from gridfs-stream to GridFSBucket? Can one integration be swapped-in without any MongoDB plumbing?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
how to replace gridStore to gridFSBucket? - Stack Overflow
This answer uses the gridfs-stream package which causes the error in the first place. – Nikitas IO · @Inhinito Did you tried the...
Read more >GridFS — Java Sync - MongoDB
The files collection stores the file metadata. When you create a new GridFS bucket, the driver creates the preceding collections, prefixed with the...
Read more >Class: GridFSBucket
lib/gridfs-stream/index.js, line 141. Returns a readable stream (GridFSBucketReadStream) for streaming file data from GridFS.
Read more >gridfs-stream - Bountysource
The file saving was successful, only if this not appear in my node console... (node:27019) DeprecationWarning: `ensureIndex()` is deprecated in Mongoose > ...
Read more >[Solved]-gridfs-stream always stores files with "contentType
Coding example for the question gridfs-stream always stores files with "contentType: binary/octet-stream"-mongodb.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Coming back to you. I successfully migrated! See https://github.com/infoderm/patients/issues/157. In particular, https://github.com/infoderm/patients/issues/157#issuecomment-864028987 is the answer to
Aside from this semi-non-issue, I had to be particularly focused when diffing the previous implementation with https://github.com/veliovgroup/Meteor-Files/blob/6a192b74537c705069ad60b21959ef2233b9f58b/docs/gridfs-bucket-integration.md. For instance
.on('end', ...)becomes.on('finish', ...)in the upload handler.PS: Would it not be safer to force explicitly setting the
bucketNamein examples?Closed due to silence at issue owner end. Feel free to reopen it in case if the issue still persists on your end.