DEV Community

Discussion on: Uploading a File to a Server from Flutter Using a Multi-Part (form-data) POST Request

Collapse
 
faragan profile image
Faragan

Hey, nice tutorial, but I have an issue with the http connection.
It says:

Bad state: Insecure HTTP is not allowed by platform: http://[myIP]:3000/upload

I added

android:usesCleartextTraffic="true"

to my AndroidManifest, but it does not work.

Any solutions?

Collapse
 
nhanta0408 profile image
nhanta0408

You can try this solution: flutter.dev/docs/release/breaking-...
This works for me