@doc """
Put a file to the backend.
- Returns a `String.t` containing the path of the uploaded file.
+ Returns `{:ok, String.t } | {:error, String.t} containing the path of the
+ uploaded file, or error information if the file failed to be saved to the
+ respective backend.
"""
@callback put_file(
name :: String.t(),
file :: File.t(),
content_type :: String.t(),
should_dedupe :: Boolean.t()
- ) :: String.t()
-
- @callback put_file(
- name :: String.t(),
- uuid :: String.t(),
- image_data :: String.t(),
- content_type :: String.t(),
- should_dedupe :: String.t()
- ) :: String.t()
+ ) :: {:ok, String.t()} | {:error, String.t()}
end