pub async fn add_file_for_cleanup(
transaction: &mut Transaction<'_, Postgres>,
file_path: &str,
file_size: i64,
) -> Result<(), Error>Expand description
Adds a file to the temporary_files table for cleanup.
Files added to temporary_files will be automatically deleted by the cleanup process after the expiration time. The default expiration is 1 hour from now.