http
http copied to clipboard
dart-http-boundary add automatically
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--
same problem here :
any ideas how to solve?
ok, I actually fixed it by using the correct request type final request = http.Request('PUT', uri);
You shouldn't use MultipartRequest unless your request consists of multiple parts. Instead, use a regular Request.