rsim v0.1.0 Rsim.Storage behaviour View Source

Uploader Behaviour

Link to this section Summary

Callbacks

Returns URL to the file in storage

Save file to storage

Save file to storage

Link to this section Callbacks

Link to this callback file_url(arg0) View Source
file_url(String.t()) :: {:ok, String.t()} | {:error, String.t()}

Returns URL to the file in storage

Link to this callback save_file(arg0, arg1) View Source
save_file(String.t(), String.t()) :: :ok | {:error, String.t()}

Save file to storage

Link to this callback save_file(arg0, arg1, atom) View Source
save_file(String.t(), String.t(), Map) :: :ok | {:error, String.t()}

Save file to storage