Refactor the file controller update method for clarity