New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is a schema-type of "GridFS" wanted? #7482
Comments
I've always been hesitant to put this into core mongoose because in my experience there's rarely a reason to use gridfs. Storing the file on S3 and then storing the URL in MongoDB is generally much easier. I would be open to a plugin though. |
@vkarpov15 After thinking about this for some time, i have to admit that i share your opinion on storing binary data somewhere else (local, ftp, smb, S3 or whatever place). |
That's a fair point. I suppose there's some value Mongoose can provide with |
Has anyone implemented a plugin for this yet the code in a production environment becomes a general headache when handling lets say various routes |
@Chukstart not that I know of yet. |
@Chukstart can you please open up a new issue and follow the issue template? Your question is too vague for me to provide a meaningful answer. |
I have put together a reusable Mongoose Schema for GridFS at https://github.com/abskmj/gridfile. It has generic methods to interact with GridFS and supports populating other schemas. This might help you and/or others out there. |
Feature-request:
As in #2631, i think many of us would love to have a clean type of "GridFS" for referencing files/chunks saved in mongoDB as GridFS.
Is this wanted as official mongoose type?
Is the implementation already on it's way?
Because i would love to help creating such a clean schema type, so that we can store files.
I now tried 2 npm packages for that, but both are really not "optimal" and are very rarely updated.
Would love to get a response/opinion from @vkarpov15 on this :)
The text was updated successfully, but these errors were encountered: