You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the actual file upload still doesn't work since request headers doesn't get Content-Type: "multipart/form-data" and there is no request payload either.
It should look something like this to work:
File upload feature would be very handy to have in this openapi-client!
The text was updated successfully, but these errors were encountered:
I have a problem with file upload through formData with generated openapi-client.
All good in swagger UI:
openapi-client generates Typescript type error "[ts] Cannot find name 'file'.":
I resolved the type error by having "file" replaced with "File" (big F https://developer.mozilla.org/en/docs/Web/API/File) with following PR Feature/add type file #11.
But the actual file upload still doesn't work since request headers doesn't get Content-Type: "multipart/form-data" and there is no request payload either.
It should look something like this to work:
File upload feature would be very handy to have in this openapi-client!
The text was updated successfully, but these errors were encountered: