only update file if we get a File instance