-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
Description
I have a problem with file upload through formData with generated openapi-client.
- I create a new post with type 'file':
-
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.

-
File upload feature would be very handy to have in this openapi-client!




