-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] http.fetch may be support formData #5545
Comments
If you add the Edit: I think you have to set the |
i add the http-multipart and then how to use ? for example: import { http } from '@tauri-apps/api';
const formData = new FormData();
formData.append('msg', 'test_message');
await http
.fetch('some_url', {
method: 'POST',
headers: {
'content-type': 'multipart/form-data',
},
body: http.Body.form(formData) // how can i do ?
})
|
That's right @Sneaken though i'm not sure if it supports a FormData object, let me check. Any regular JS object should work. |
Describe the problem
i need use FormData in CORS fetch
Describe the solution you'd like
rust can parse my FormData and request again
Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: