store file metadata to File model