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, **) [:response_content_type] ||= content_type [:response_content_disposition] ||= content_disposition object(uid).presigned_url(:get, **) end |