aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_storage/service/s3_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_storage/service/s3_service.rb')
-rw-r--r--lib/active_storage/service/s3_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_storage/service/s3_service.rb b/lib/active_storage/service/s3_service.rb
index 4c17f9902f..72ff9f3f36 100644
--- a/lib/active_storage/service/s3_service.rb
+++ b/lib/active_storage/service/s3_service.rb
@@ -59,10 +59,10 @@ class ActiveStorage::Service::S3Service < ActiveStorage::Service
end
end
- def url_for_direct_upload(key, expires_in:, content_type:, content_length:)
+ def url_for_direct_upload(key, expires_in:, content_type:, content_length:, checksum:)
instrument :url, key do |payload|
generated_url = object_for(key).presigned_url :put, expires_in: expires_in,
- content_type: content_type, content_length: content_length
+ content_type: content_type, content_length: content_length, content_md5: checksum
payload[:url] = generated_url