aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_storage
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_storage')
-rw-r--r--lib/active_storage/service/s3_service.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/active_storage/service/s3_service.rb b/lib/active_storage/service/s3_service.rb
index b4d0ed4bee..413789e2b5 100644
--- a/lib/active_storage/service/s3_service.rb
+++ b/lib/active_storage/service/s3_service.rb
@@ -10,8 +10,7 @@ class ActiveStorage::Service::S3Service < ActiveStorage::Service
end
def upload(key, io, checksum: nil)
- # FIXME: Ensure integrity by sending the checksum for service side verification
- object_for(key).put(body: io)
+ object_for(key).put(body: io, content_md5: checksum)
end
def download(key)