method

upload_with_single_part

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: S3Service
upload_with_single_part(key, io, checksum: nil, content_type: nil, content_disposition: nil) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/service/s3_service.rb, line 113
      def upload_with_single_part(key, io, checksum: nil, content_type: nil, content_disposition: nil)
        object_for(key).put(body: io, content_md5: checksum, content_type: content_type, content_disposition: content_disposition, **upload_options)
      rescue Aws::S3::Errors::BadDigest
        raise ActiveStorage::IntegrityError
      end
Register or log in to add new notes.