Uploadex v1.0.1 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 type
record()
View Source
record()
View Source
record() :: any()
record() :: any()
Link to this section Functions
Link to this function
delete_files(record) View Source
Deletes all files for a record.
Link to this function
delete_previous_files(new_record, previous_record) View Source
Deletes all files that changed.
Link to this function
get_file_url(record) View Source
Link to this function
get_file_url(record, file) View Source
Link to this function
get_files_url(record) View Source
Link to this function
get_files_url(record, files) View Source
Link to this function
store_files(record) View Source
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.