add a file for record