fixing protocol relative url upload problem