depot
depot copied to clipboard
Add additional metadata
Is it possible to add additional metadata to the file which will be uploaded to GridFS, something like the following command is not working:
fileid = depot.create(open('C:/Users/xxx/Documents/mongodb/mineral.jpg', 'rb'),
metadata=dict(
{"tag": "image", "tag2": "videocut", "tag3": "jpg"})
)