depot icon indicating copy to clipboard operation
depot copied to clipboard

Add additional metadata

Open mat-l opened this issue 4 years ago • 0 comments

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"})
                      )

mat-l avatar Jun 26 '20 08:06 mat-l