Method: Tus::Storage::S3#file_url

Defined in:
lib/tus/storage/s3.rb

#file_url(uid, info = {}, content_type: nil, content_disposition: nil, **options) ⇒ Object

Returns a signed expiring URL to the S3 object.



179
180
181
182
183
184
# File 'lib/tus/storage/s3.rb', line 179

def file_url(uid, info = {}, content_type: nil, content_disposition: nil, **options)
  options[:response_content_type]        ||= content_type
  options[:response_content_disposition] ||= content_disposition

  object(uid).presigned_url(:get, **options)
end