isoos / http_client

https://pub.dartlang.org/packages/http_client
BSD 3-Clause "New" or "Revised" License
13 stars 6 forks source link

How to send file using form-data? #12

Closed xellDart closed 3 years ago

isoos commented 3 years ago

@xellDart Technically this is what you want to have on the wire: https://stackoverflow.com/a/8660740 IIRC the package doesn't have high-level support for it yet, but you can always have it at the low-level as a byte stream. I'd like to have a high-level API, but haven't figured it out yet. If you are up for it and have something in mind, I'm accepting PRs.