http icon indicating copy to clipboard operation
http copied to clipboard

dart-http-boundary add automatically

Open rupamking1 opened this issue 4 years ago • 3 comments

When I upload a text/plain file then --dart-http-boundary included why? how to remove it?

--dart-http-boundary-KsGEjcz-DEJ.VCVic1n+jfi6kHQb9Yfo1j4XKw0ocsq-Fiyi4ZV content-type: text/plain; charset=utf-8 content-disposition: form-data; name=""

aaaaaaaaaaaaaaa --dart-http-boundary-KsGEjcz-DEJ.VCVic1n+jfi6kHQb9Yfo1j4XKw0ocsq-Fiyi4ZV--

rupamking1 avatar Sep 30 '21 13:09 rupamking1

same problem here :
any ideas how to solve?

uri-ravzin avatar May 10 '23 17:05 uri-ravzin

ok, I actually fixed it by using the correct request type final request = http.Request('PUT', uri);

uri-ravzin avatar May 10 '23 18:05 uri-ravzin

You shouldn't use MultipartRequest unless your request consists of multiple parts. Instead, use a regular Request.

brianquinlan avatar Jun 28 '24 22:06 brianquinlan