İonic-v5 File Transfer Upload Failed

E/FileTransfer: {
“target”:“https://mysite/upload",“http_status”:200,“exception”:"Failed to connect to
} Failed to connect to localhost/

I want to upload photos on android app using Ionic 5 and capacitor. I get this error.

how can i solve this problem?

Please post the code that is doing the uploading.

I understand that the problem is related to my url

Hi! I have the same problem. Did you get any solution?

I didn’t remember my problem.
I guess it was about my url error