File storage gridfs

Skip to first unread message

Clea Parcerisas

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

Aug 26, 2020, 2:40:45 AM8/26/20
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

To view this discussion on the web visit

Reply all
Reply to author
0 new messages