nestia
nestia copied to clipboard
Handling File Uploads
Hi guys,
I'm only beginning with nestia and I'm facing probably some newbie questions that are linked together, but here they are :
-
How can I define a different
content-typefor one endpoint ? Because using@Headerdecorator doesn't seem to change the Swagger output bynestia -
Is it possible to handle File Uploads with Multer and
nestia swagger/nestia sdkand how ?
Not support the file upload yet.
But it must be someday. I'm developing typescript-json and this feature would be after that project.
Thanks for your response ! That would be great
Is there currently a way to provide a custom content-type to nestia, at least ?
That could help in order to find a workaround for now
Nope, only application/json is supported
@samchon Any progress / ideas in this regard? We just ran into this today
File uploading is related to frontend components. However, @nestia/sdk supports both NodeJS and Web browsers.
Considering such aspects, I don't have clear idea. If you have a good interface design about that, please write an issue suggesting it.