|
|
|
|
@ -23,13 +23,7 @@ module Storage
|
|
|
|
|
def get_presigned_url(file_name, duration, response_content_disposition: nil) |
|
|
|
|
Aws::S3::Presigner |
|
|
|
|
.new({ client: @client }) |
|
|
|
|
.presigned_url( |
|
|
|
|
:get_object, |
|
|
|
|
bucket: @configuration.bucket_name, |
|
|
|
|
key: file_name, |
|
|
|
|
expires_in: duration, |
|
|
|
|
response_content_disposition:, |
|
|
|
|
) |
|
|
|
|
.presigned_url(:get_object, bucket: @configuration.bucket_name, key: file_name, expires_in: duration, response_content_disposition:) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def get_file_io(file_name) |
|
|
|
|
|