Preparing files for upgrade