liormizr / s3path

s3path is a pathlib extension for AWS S3 Service
Apache License 2.0
206 stars 39 forks source link

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

Open LeoQuote opened 3 years ago

LeoQuote commented 3 years ago

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.