bradleyg / django-s3direct

Directly upload files to S3 compatible services with Django.
MIT License
653 stars 234 forks source link

How Could I Attach MetaData to the S3 Object (file) being Uploaded? #237

Closed jaradc closed 2 years ago

jaradc commented 2 years ago

I would like to attach metadata to all objects uploaded. Where in the code can I add this metadata before uploading? Also, I'm curious when this would occur with multipart uploads - iteratively or at the end when all parts are uploaded?

image

jaradc commented 2 years ago

I figured it out. I have to modify the generateAmzInitHeaders headers to include x-amz-meta-whatever = 'some meta data'