FileStorageApi.File behaviour (file_storage_api v0.2.1)
Module for file handling
Link to this section Summary
Functions
This function will create a temporary file and upload to asset store
Link to this section Types
Specs
Link to this section Functions
Link to this function
delete(container_name, filename)
Specs
Link to this function
public_url(container_name, file_path, start_time \\ Timex.now(), expire_time \\ Timex.add(Timex.now(), Timex.Duration.from_days(1)))
Specs
public_url(String.t(), String.t(), DateTime.t(), DateTime.t()) :: {:ok, String.t()} | {:error, String.t()}
Link to this function
sanitize(name)
Specs
Link to this function
upload(container_name, filename, blob_name)
Specs
Link to this function
upload_file_from_content(filename, container_name, content, blob_name)
Specs
upload_file_from_content(binary(), binary(), binary() | iodata(), binary()) :: {:ok, String.t()} | {:error, map()}
This function will create a temporary file and upload to asset store
Link to this section Callbacks
Link to this callback
delete(arg1, arg2)
Specs
Link to this callback
public_url(arg1, arg2, arg3, arg4)
Specs
public_url(String.t(), String.t(), DateTime.t(), DateTime.t()) :: {:ok, String.t()} | {:error, String.t()}
Link to this callback