Currently it is not possible to use "multipart/form-data" as content-type posting form-data with the http module due to missing boundary.
Example using the JS-API setting content-type by hand resulting in missing boundary:
return await http.fetch(url, {
method: "POST",
headers: {
"Content-Type": "multipart/form-data",
},
responseType: 1,
body: http.Body.form({
name: "test"
})
});
This might be an issue with attohttpc, leaving the content type blank the content-type defaults to "application/x-www-form-urlencoded".
I am using the latest version of tauri (1.0.0-beta.4).
Currently it is not possible to use "multipart/form-data" as content-type posting form-data with the http module due to missing boundary.
Example using the JS-API setting content-type by hand resulting in missing boundary:
This might be an issue with attohttpc, leaving the content type blank the content-type defaults to "application/x-www-form-urlencoded".
I am using the latest version of tauri (1.0.0-beta.4).