0

so I have this example REST api:

https://example-api.com/

and for sending a request to make an action on a file, I can do this:

curl -F "file=@test.txt" https://example-api.com/makeActionOnFile

this will take test.txt file and send it to the endpoint, this example is working using curl

How can I do the same thing by making a request on a File object in Dart/Flutter?

Can it be done using the HTTP package?

Thank you

Gwhyyy
  • 7,554
  • 3
  • 8
  • 35

0 Answers0