Uploadex v3.0.0-rc.1 Uploadex.S3Storage View Source

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"}

Link to this section Summary

Link to this section Functions

Link to this function

delete_file_after_delay(delay, path)

View Source