s3path icon indicating copy to clipboard operation
s3path copied to clipboard

Is there a way to access/change content-type or meta data before uploading a file?

Open LeoQuote opened this issue 4 years ago • 0 comments

when using put_object method, I can set Meta and content type using

response = client.put_object(
    Body='filetoupload',
    Bucket='examplebucket',
    Key='objectkey',
    ContentType='string',
    Metadata={
        'string': 'string'
    },
)

It will be useful if I can set content type and metadata before uploading.

LeoQuote avatar Sep 08 '21 09:09 LeoQuote