Fix the fragment upload url for HTTPS