İonic-v5 File Transfer Upload Failed

E/FileTransfer: {
“code”:3,
“source”:“http://localhost/capacitor_file/data/user/0/io.ionic.starter/files/15948856657
66.jpg”,
“target”:“https://mysite/upload",“http_status”:200,“exception”:"Failed to connect to
localhost/127.0.0.1:80”
}
java.net.ConnectException: Failed to connect to localhost/127.0.0.1:80

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?

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