Uploadex v2.0.0 Uploadex.Files View Source
Functions to store and delete files.
Link to this section Summary
Functions
Deletes all files for a record.
Deletes all files that changed.
Stores all files of a record, as defined by the uploader.
Link to this section Types
Link to this section Functions
Deletes all files for a record.
Deletes all files that changed.
Link to this function
get_file_url(record, file, field)
View Sourceget_file_url(record(), String.t(), record_field()) :: String.t() | nil | {:error, String.t()}
Link to this function
get_files_url(record, field)
View Sourceget_files_url(record(), record_field()) :: [String.t()]
Link to this function
get_files_url(record, files, field)
View Sourceget_files_url(record(), String.t() | [String.t()], record_field()) :: [ String.t() ]
Link to this function
get_temporary_files(record, path, field)
View Sourceget_temporary_files(record(), String.t(), record_field()) :: [String.t()]
Stores all files of a record, as defined by the uploader.
Files that are not maps are ignored, which allows for assigning an existing file to a record without recreating it, by simply passing it's filename.