Uploading Large File to S3 with Ruby Fails with Out of Memory Error, How to Read and Upload in Chunks?

后端 未结 2 1155
面向向阳花
面向向阳花 2021-01-13 09:32

We are uploading various files to S3 via the Ruby AWS SDK (v2) from a Windows machine. We have tested with Ruby 1.9. Our code works fine except when large files are encounte

2条回答
  •  滥情空心
    2021-01-13 10:29

    The size limit for a bucket in .put is 5GB.

    However there is "multipart" upload in s3 where you can upload the files with large size.

    These links might help you: http://docs.aws.amazon.com/AmazonS3/latest/dev/UploadingObjects.html http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/S3/MultipartUpload.html

提交回复
热议问题