We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"multipart/form-data" requests throw an exception:
Multipart form parse error - Invalid boundary in multipart: None
Simple multipart/form-data request:
const data = new FormData(); spotInfos.pictures.forEach((file, index) => { data.append('pictures', { uri: file.path, // your file path string name: file.name, type: file.type }) }); spotInfos.tags.forEach(t => data.append('tags', t)) data.append('name', spotInfos.name); data.append('description', spotInfos.description); return axiosInstance.post(`spots/`, data, { headers: { 'Accept': 'application/json', 'Content-Type': 'multipart/form-data', }, });
This code works on axios 0.24.0
No error
I have tested the latest version too (0.26.1)
The text was updated successfully, but these errors were encountered:
Known issue: #4499, #4460, #4412, #4406 It seems this will be fixed in the next release.
Sorry, something went wrong.
Oh indeed, sorry ! I have only found similar issues closed automatically (because not following the template).
Thanks, I close it because it will be fixed in the next release
No branches or pull requests
Describe the bug
"multipart/form-data" requests throw an exception:
Multipart form parse error - Invalid boundary in multipart: None
To Reproduce
Simple multipart/form-data request:
This code works on axios 0.24.0
Expected behavior
No error
Environment
Additional context/Screenshots
I have tested the latest version too (0.26.1)
The text was updated successfully, but these errors were encountered: