instance method
upload_with_single_part
Ruby on Rails 7.2.3
Since v6.1.7.10 PrivateSignature
upload_with_single_part(key, io, checksum: nil, content_type: nil, content_disposition: nil, custom_metadata: {})
No documentation comment.
Parameters
-
keyreq -
ioreq -
checksumkey = nil -
content_typekey = nil -
content_dispositionkey = nil -
custom_metadatakey = {}
Source
# File activestorage/lib/active_storage/service/s3_service.rb, line 142
def upload_with_single_part(key, io, checksum: nil, content_type: nil, content_disposition: nil, custom_metadata: {})
object_for(key).put(body: io, content_md5: checksum, content_type: content_type, content_disposition: content_disposition, metadata: custom_metadata, **upload_options)
rescue Aws::S3::Errors::BadDigest
raise ActiveStorage::IntegrityError
end
Defined in activestorage/lib/active_storage/service/s3_service.rb line 142
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::S3Service