Transmit v0.3.0 Transmit.S3Signer View Source

Transmit.Signer for AWS S3 Presigned URLs

Make sure to install ex_aws and ex_aws_s3 as dependencies in your project:

def deps do
[
  {:ex_aws, "~> 2.0"},
  {:ex_aws_s3, "~> 2.0"},
]
end

Also make sure to follow setup instructions: https://github.com/ex-aws/ex_aws#aws-key-configuration

Options

accepts the following options:

  • :bucket - The S3 bucket to use
  • :path - the path in the bucket. (defaults to uploads)

Link to this section Summary

Link to this section Functions

Link to this function

get_presigned_url(new_file_name, opts) View Source

Callback implementation for Transmit.Signer.get_presigned_url/2.