toHTTPS was only taking care of scheme, which is not enough. So use self._https_url directly.
Attach a file by drag & drop or click to upload