diff options
author | George Claghorn <george@basecamp.com> | 2019-05-16 10:58:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-16 10:58:33 -0400 |
commit | 9c5135ce6a10c8318e25a587620c8cde4563f348 (patch) | |
tree | 11e6ed9800b9bf401e02515607d1861092e31c78 /activestorage/CHANGELOG.md | |
parent | c8396e030f4b1edd48340975696dcaf6aa8291c9 (diff) | |
download | rails-9c5135ce6a10c8318e25a587620c8cde4563f348.tar.gz rails-9c5135ce6a10c8318e25a587620c8cde4563f348.tar.bz2 rails-9c5135ce6a10c8318e25a587620c8cde4563f348.zip |
S3: permit uploading files larger than 5 GB
Use multipart uploads for files larger than 100 MB. Dynamically calculate part size based on total object size and maximum part count.
Diffstat (limited to 'activestorage/CHANGELOG.md')
-rw-r--r-- | activestorage/CHANGELOG.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/activestorage/CHANGELOG.md b/activestorage/CHANGELOG.md index 957591ec0a..956567e08a 100644 --- a/activestorage/CHANGELOG.md +++ b/activestorage/CHANGELOG.md @@ -1,3 +1,24 @@ +* The S3 service now permits uploading files larger than 5 gigabytes. + When uploading a file greater than 100 megabytes in size, the service + transparently switches to [multipart uploads](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html) + using a part size computed from the file's total size and S3's part count limit. + + No application changes are necessary to take advantage of this feature. You + can customize the default 100 MB multipart upload threshold in your S3 + service's configuration: + + ```yaml + production: + service: s3 + access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> + secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %> + region: us-east-1 + bucket: my-bucket + upload: + multipart_threshold: <%= 250.megabytes %> + ``` + + *George Claghorn* Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/activestorage/CHANGELOG.md) for previous changes. |