Uploadex v1.0.1 Uploadex.Storage behaviour View Source

Behaviour for a Storage implementation.

Link to this section Summary

Callbacks

Deletes the file

Returns the file's URL

Stores the file

Link to this section Types

Link to this section Callbacks

Link to this callback

delete(file, opts) View Source
delete(file(), opts()) :: :ok | {:error, any()}

Deletes the file

Link to this callback

get_url(file, opts) View Source
get_url(file(), opts()) :: String.t()

Returns the file's URL

Link to this callback

store(file, opts) View Source
store(file(), opts()) :: :ok | {:error, any()}

Stores the file