Added HTTPS upload support