Fixed BrandingExtensions to point to the new UploadFile method. Also added PublishFile method to capture part of the old UploadFile method in another separate function.