AWS S3 Presigned URL Upload Tutorial in Python

AWS S3 Presigned URL Upload Tutorial in Python

Be A Better Dev

2 года назад

31,323 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Kenath Perera
Kenath Perera - 25.09.2023 05:25

can you give me an example to make this request from react axio please ?

Ответить
Nikhil Sha
Nikhil Sha - 11.07.2023 23:53

I couldn't figure out how to do this in Swift, but this video gave me the idea to put the generator on Lambda! Awesome content always.

Ответить
Steven Gutiérrez
Steven Gutiérrez - 05.04.2023 00:05

If you are getting this error: "Requests specifying Server Side Encryption with AWS KMS managed keys require AWS Signature Version 4", you have to configure the signature_version when you instance the client. For Python_:
client(service_name="s3", region_name="us-east-1", config=Config(signature_version="s3v4"))

Ответить
Andy Carrein
Andy Carrein - 16.11.2022 19:23

I was curious who the guy in the photo was (Jeff Goldblum?) but googling mr Hands is not advised 😂

Ответить
Dogo Ortodoxo
Dogo Ortodoxo - 04.11.2022 22:43

super dope😃 thank you bro

Ответить
Juan Fernandez
Juan Fernandez - 25.10.2022 21:41

what would the code look like if you are provided a user name, access key ID, secret access key and bucket name instead of you creating it the signed URL?

Ответить
Jithin Kumar
Jithin Kumar - 26.09.2022 15:09

I am getting a 405 for this. If someone can help me it would be much appreciated

Ответить
Rijhu Mal
Rijhu Mal - 04.08.2022 23:01

what is aws accesskey id in presigned url payload ? and how do i generate presigned url in lambda python?

Ответить
Marcus Wright
Marcus Wright - 27.07.2022 02:30

How would this work with file input or FileField?

Ответить
Gaurav Mathur
Gaurav Mathur - 13.04.2022 14:47

Policy Condition failed: ["eq", "$key"] can anyone tell me how to resolve this error

Ответить
Ty Ha
Ty Ha - 31.03.2022 13:58

in my case, it doesn't display the image, it just downloads the image

Ответить
Sany Ahmed
Sany Ahmed - 30.12.2021 21:17

File uploaded with presigned post perfectly but the content type is always binary/octet-stream instead of my passed content type e.g application/pdf or image/png , how to send the proper content type, actually I want to view the file from S3 instead of download when click the S3 link after upload. Because of binary/octet-stream it's download instead of view on browser.

Ответить
Liam Lindy
Liam Lindy - 27.11.2021 19:00

Love this video. Question though, why would this be done client side vs server side or in Lambda or another FaaS

Ответить
Ashutosh Panda
Ashutosh Panda - 04.10.2021 19:24

can you please please make this with nodejs

Ответить
Christian Ibiri
Christian Ibiri - 29.09.2021 03:50

like it

Ответить
Vinit K
Vinit K - 27.09.2021 20:21

Would like it if you'd could continue this topic with presigned URL for multiparty upload

Ответить
Meme Reddit
Meme Reddit - 27.09.2021 19:30

Interesting. What would be some good example use-cases for this?

I would have imagined exposing an upload endpoint to the user and handling the uploading ourselves would be the way to go. Would using a pre-signed url still make sense for this use-case, or better to just directly use boto3 s3 put call?

Ответить