Uploadex v2.0.2 Uploadex View Source
Context Helper functions for handling files.
Link to this section Summary
Functions
Inserts the changeset and store the record files in a database transaction, so if the files fail to be stored the record will not be created.
Deletes the record and all of its files. This is not in a database transaction, since the delete operation never returns errors.
Updates the record and its files in a database transaction, so if the files fail to be stored the record will not be created.
Similar to update_with_file/3
, but does not delete previous files.
Link to this section Functions
Inserts the changeset and store the record files in a database transaction, so if the files fail to be stored the record will not be created.
Deletes the record and all of its files. This is not in a database transaction, since the delete operation never returns errors.
Updates the record and its files in a database transaction, so if the files fail to be stored the record will not be created.
This function also deletes files that are no longer referenced.
Similar to update_with_file/3
, but does not delete previous files.