insert a file to the res