Open eisenreich opened 3 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
Any updates? Same for typescript-nest.
As a workaround, you can add an interceptor to the axios instance provided to the api clients
instance.interceptors.request.use((config) => {
if (config.data && config.data instanceof FormData) {
return {
...config,
headers: {
...config.headers,
...config.data.getHeaders()
}
}
}
return config
})
Bug Report Checklist
Description
When using typescript-axios in a node environment, it's not able to upload a image because axios does not automatically add the boundary to the header, ref see here.
openapi-generator version
2.1.6
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Execute the command above and take a look at
ImageApiAxiosParamCreator:54
.Related issues/PRs
Suggest a fix
I already have an idea how it could be fixed, but I have to say that I only have beginner experience, so please check if it makes sense.