Upload.Adapters.S3 (upload v0.3.0)

An Upload.Adapter that stores files using Amazon S3.

Requirements

def deps do
  [{:ex_aws_s3, "~> 2.0"},
   {:hackney, ">= 0.0.0"},
   {:sweet_xml, ">= 0.0.0"}]
end

Configuration

config :upload, Upload.Adapters.S3,
  bucket: "mybucket", # required
  base_url: "https://mybucket.s3.amazonaws.com" # optional

Link to this section Summary

Functions

The base URL that all resources are hosted on.

The bucket that was configured.

Link to this section Functions

The base URL that all resources are hosted on.

Examples

iex> Upload.Adapters.S3.base_url()
"https://my_bucket_name.s3.amazonaws.com"

The bucket that was configured.

Examples

iex> Upload.Adapters.S3.bucket()
"my_bucket_name"