Class: Service::ScalewayService
- Inherits:
-
S3Service
- Object
- S3Service
- Service::ScalewayService
- Defined in:
- lib/active_storage/service/scaleway_service.rb
Instance Method Summary collapse
Instance Method Details
#headers_for_direct_upload(key, content_type:, checksum:, filename: nil, disposition: nil) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/active_storage/service/scaleway_service.rb', line 6 def headers_for_direct_upload(key, content_type:, checksum:, filename: nil, disposition: nil, **) content_disposition = content_disposition_with(type: disposition, filename: filename) if filename headers = public? ? { "x-amz-acl" => "public-read" } : {} headers.merge({ "Content-Type" => content_type, "Content-MD5" => checksum, "Content-Disposition" => content_disposition }) end |