D
D
DTX2018-08-22 20:57:19
Amazon Web Services
DTX, 2018-08-22 20:57:19

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

1 answer(s)
I
Ivan Shumov, 2018-09-17
@inoise

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 question

Ask a Question

731 491 924 answers to any question