A slightly better reset mechanism for send_file_entry() and