Answer the question
In order to leave comments, you need to log in
How to properly upload files to AWS S3?
There is a site and separately there is a S3 basket. The basket is supposed to store large files. At first I thought to make the user upload files to the site, and the site already uploaded them to the trash
. But it looks rather strange.
There is an option to pour files into the basket directly from the client, but then the secret key will be available to users, and they will have access to this basket. What is the right thing to do in such a situation?
Answer the question
In order to leave comments, you need to log in
We can generate one-time upload policies directly in S3. This way the client will be able to upload the data directly to the bucket. Be sure to configure CORS on the bucket to allow PUT.
There is a very good lesson on this from A Cloud Guru:
https://acloud.guru/learn/serverless-for-beginners
I advise you to immediately set up Cloudfront Distribution (Transfer Acceleration)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question