File storage gridfs

20 views
Skip to first unread message

Clea Parcerisas

unread,
Aug 25, 2020, 10:25:17 AM8/25/20
to MongoEngine Users
I am struggling to find a way to upload files to mongodb with the metadata as an embedded document. If I use the file field I get 3 collections: collection_name, collection_name.files and collection_name.chunks, but I would like to ONLY have files and chunks (to keep it with the same structure that already exists for other data), and that the metadata from the files collection is defined in mongoengine.
Is it possible or do I have to code it myself using pymongo and gridfs?
Thank you very much for your help in advance!


Medical Marijuana

unread,
Aug 26, 2020, 2:40:45 AM8/26/20
to mongoeng...@googlegroups.com
Ok cool

--


You received this message because you are subscribed to the Google Groups "MongoEngine Users" group.


To unsubscribe from this group and stop receiving emails from it, send an email to mongoengine-us...@googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/mongoengine-users/003c63f9-1238-4707-85ec-e214143f18f6n%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages