Tutorial: How to upload files into a S3 Bucket using a REST API via API Gateway

Tutorial: How to upload files into a S3 Bucket using a REST API via API Gateway

Let's Find Solutions

1 год назад

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

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


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

@shantanusahu9168
@shantanusahu9168 - 17.11.2023 15:56

i am getting internal server error while calling the api.
is it something to do with WAF or ListWebACLs?

Ответить
@sudeepshiv
@sudeepshiv - 10.11.2023 10:18

great video and thanks for sharing. I would like to upload via browser instead of postman, is there any way to api via browser ?

Ответить
@ujjwalm29
@ujjwalm29 - 08.11.2023 17:54

In this method, can anybody in the world upload to my bucket? What if i wanted to restrict it to just myself? Using an access token or api key?

Ответить
@kienvan1006
@kienvan1006 - 13.10.2023 06:01

How can I get the content of the file in the bucket using the api?
I mean GET method

Ответить
@user-uj4fo6oo5d
@user-uj4fo6oo5d - 12.10.2023 11:18

Thanks it works for me, now problem i am facing is, once file upload to s3 bucket i can see file, but when i use to open that file with object url than my file is not opening, its giving me error like access denied so let me know how to give public writes to view that file simultaneously.

Ответить
@user-pe3bd3sq7s
@user-pe3bd3sq7s - 03.10.2023 23:03

no it did not work time wasted

Ответить
@sayedimran5972
@sayedimran5972 - 02.10.2023 16:58

Hi there,
I just switched to the updated console for API Gateway and tried to get the same scenario, but over there, it is not allowing me to give the Path override field as {bucket}/{filename} rather just the {bucket}.

Also after deploying the API Gateway, I am getting this error:


<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>MaxMessageLengthExceeded</Code>
<Message>Your request was too big.</Message>
<MaxMessageLengthBytes>10240</MaxMessageLengthBytes>
<RequestId>5KN0W9VZX436B9S8</RequestId>
<HostId>K1j8PseM9Rxky8woHv6VjSH2zAU1ta7Raqk9nOJF7untXTnoFN/0y7ngSAMp0jBX4BU7xZiuG6Y=</HostId>
</Error>

Ответить
@azoz1433alamodi
@azoz1433alamodi - 01.10.2023 20:37

sir , you are a life saver , thank you

Ответить
@user-ti5zm2wy1l
@user-ti5zm2wy1l - 29.09.2023 10:34

what are configuration for your stage of dev?
And my problem is that file successfully upload but size is 0kb so any solution?

Ответить
@P.Shivakrishna
@P.Shivakrishna - 28.09.2023 09:00

While Edit integration request to add URL path parameters when click save it showing Network Failure( Anyone help Currently I am Using ap-south-1 Region ) i don't know what is the problem ??

Ответить
@victormanueloquendotrujill4024
@victormanueloquendotrujill4024 - 19.09.2023 15:03

It should return the link for access the file

Ответить
@MayankGaurm
@MayankGaurm - 29.08.2023 19:16

This is really great video. I have few questions
1. Did you pass any token in header for validation.
2. I can give this url to upload file to anyone, whether he is a AWS user or not

Ответить
@sandipkuila
@sandipkuila - 12.08.2023 11:27

Thanks for this solution. I have implemented this for MS excel file upload but the size got change every time. Can you please help me out with the solution for that. Facing the issue with format change and file size got increased during upload.

Ответить
@rghp6128
@rghp6128 - 05.08.2023 02:50

good one, thank you

Ответить
@leandroosterne
@leandroosterne - 31.07.2023 20:54

How would it be via POST, to send file via base64 string?

Ответить
@coder040
@coder040 - 07.07.2023 11:17

Hey Thank You for the wonderful explanation, just had one question, is it possible to pass "chacterset=utf-8" while uploading file

Ответить
@lucasvargasquintana8396
@lucasvargasquintana8396 - 10.06.2023 16:46

Wow, this a really straightforward solution! I was able to follow your tutorial easily and upload a file to AWS S3 without any trouble. Thank you for sharing your knowledge!

I have one question though. Is it possible to upload a file to a specific folder within a bucket on AWS S3? If so, could you please explain the process of achieving this? I would greatly appreciate your guidance. Keep up the amazing work

Ответить
@NishantSharma-er6en
@NishantSharma-er6en - 23.05.2023 12:34

Requests can't be sent in public workspaces right now – though we're working on that for a future release!
getting this error in postman, while sending the url.

Ответить
@JavierHernandez-xo5nb
@JavierHernandez-xo5nb - 05.05.2023 22:12

Thank you so much for sharing your knowledge. I also want to add that the way you present the process was very satisfactory. I look forward to seeing more videos on the subject.

Ответить
@yesimscheidj
@yesimscheidj - 19.04.2023 12:44

Im really grateful for this tutorial that you created.

Also may I ask if how can I use it or the api so I can use it in php and upload files from the local storage into s3 bucket instead of the server side?

Ответить
@muhammadhsajjaadali855
@muhammadhsajjaadali855 - 18.04.2023 13:08

Thank you. This was very informative. Will this video help me in uploading a Json file into aws?

Ответить