View Source Uploadex.S3Storage (Uploadex v3.1.0)

Storage for AWS S3.

Opts

Example

To use this storage for your User record, define these functions in your Uploadex.Uploader implementation:

def default_opts(Uploadex.S3Storage), do: [bucket: "my_bucket", region: "sa-east-1", upload_opts: [acl: :public_read]]

def storage(%User{} = user, :photo), do: {Uploadex.S3Storage, directory: "/photos"}