instance method
headers_for_direct_upload
Ruby on Rails 5.2.8.1
Since v5.2.8.1Signature
headers_for_direct_upload(key, content_type:, checksum:, **)
No documentation comment.
Parameters
-
keyreq -
content_typekeyreq -
checksumkeyreq -
kwargskeyrest
Source
# File activestorage/lib/active_storage/service/s3_service.rb, line 93
def headers_for_direct_upload(key, content_type:, checksum:, **)
{ "Content-Type" => content_type, "Content-MD5" => checksum }
end
Defined in activestorage/lib/active_storage/service/s3_service.rb line 93
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::S3Service