question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about gridfs-stream -> GridFSBucket migration

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
make-github-pseudonymous-againcommented, Jun 18, 2021

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

Underlying collection configuration changes?

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 bucketName in examples?

1reaction
dr-dimitrucommented, Apr 8, 2021

Closed due to silence at issue owner end. Feel free to reopen it in case if the issue still persists on your end.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found