Reputation: 549
What is the best practice for uploading images and videos into S3 buckets. In my use case users can upload their vidoes and images and I have to store those images and videos in effective way into S3 bucket (without data loss). I read some related posts but I could not find out the better solution. I am using React JS and I have to upload it from React JS code. And each video's size would be more than 200 MB. So I am worrying about how to send those videos into S3 bucket in very less time and effective way. Please anyone suggest me a good approach to overcome this problem.
Thanks in advance!!!
Upvotes: 0
Views: 1295
Reputation: 9837
S3 will not lose your data. If you receive a 200 response from S3, you can be confident there will be no data lost.
As for best practices, you should use PUT Object
for files that are smaller than 5 GB. You can also use POST Object
to allow your users to upload files directly from the browser. The 5 GB size limit still applies in the case of POST Object
.
Once you reach the 5 GB limit, your only choice is use S3's multipart upload API. Using the multipart upload API, you can upload files of to 5 TB in size.
Upvotes: 1