instance method upload_with_single_part

Ruby on Rails 8.1.2

Since v6.1.7.10 Private

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

upload_with_single_part(key, io, checksum: nil, content_type: nil, content_disposition: nil, custom_metadata: {})

No documentation comment.

Parameters

key req
io req
checksum key = nil
content_type key = nil
content_disposition key = nil
custom_metadata key = {}
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close