method
upload_with_single_part
v8.0.0 -
Show latest stable
- Class:
ActiveStorage::Service::S3Service
upload_with_single_part(key, io, checksum: nil, content_type: nil, content_disposition: nil, custom_metadata: {})private
No documentation available.
# File activestorage/lib/active_storage/service/s3_service.rb, line 133
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