Skip to content
Advertisement

Tag: amazon-s3

BOTO3 – generate_presigned_url for `put_object` return `The request signature we calculated does not match the signature you provided`

I’m trying to create a presigned url that will help some customers to upload files . Here my test script that is currently working But if I’m adding: to Params (or add some metadata following the information in the put_object documentation I receive back from the server: I’ve open also a issue on BOTO3: https://github.com/boto/boto3/issues/1722 Answer This is covered in

Athena query fails with boto3 (S3 location invalid)

I’m trying to execute a query in Athena, but it fails. Code: But it raises the following exception: However, if I go to the Athena Console, go to Settings and enter the same S3 location (for example): the query runs fine. What’s wrong with my code? I’ve used the API of several the other services (eg, S3) successfully, but in

Django multiple image upload to S3

I am struggling to find a solution for a photo gallery in django. I’ve checkout out every django photo package (photologue, imagekit, etc.) I could find an none of them are really helping me in my quest. I am trying to build a simple image gallery that will allow me to upload multiple photos from the django admin and store

Retrieving subfolders names in S3 bucket from boto3

Using boto3, I can access my AWS S3 bucket: Now, the bucket contains folder first-level, which itself contains several sub-folders named with a timestamp, for instance 1456753904534. I need to know the name of these sub-folders for another job I’m doing and I wonder whether I could have boto3 retrieve those for me. So I tried: which gives a dictionary,

Advertisement