renew_file_id

Function renew_file_id 

Source
pub fn renew_file_id(
    conn: &Connection,
    old_id: &str,
    new_id: &str,
    new_storage_path: &str,
) -> Result<bool>
Expand description

Give a file a new ID and update its public URL.

The delete_token, filename, and expiry stay the same. Only the ID and storage_path change. Returns true if a row was actually updated.