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.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/active_storage/service/s3_service.rb b/lib/active_storage/service/s3_service.rb
index 746a636912..fd8ef6e9a6 100644
--- a/lib/active_storage/service/s3_service.rb
+++ b/lib/active_storage/service/s3_service.rb
@@ -9,7 +9,8 @@ class ActiveStorage::Service::S3Service < ActiveStorage::Service
@bucket = @client.bucket(bucket)
end
- def upload(key, io)
+ def upload(key, io, checksum: nil)
+ # FIXME: Ensure integrity by sending the checksum for service side verification
object_for(key).put(body: io)
end