check how to add a file