nestia icon indicating copy to clipboard operation
nestia copied to clipboard

Handling File Uploads

Open AtlasRW opened this issue 3 years ago • 4 comments

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-type for one endpoint ? Because using @Header decorator doesn't seem to change the Swagger output by nestia

  • Is it possible to handle File Uploads with Multer and nestia swagger / nestia sdk and how ?

AtlasRW avatar Oct 11 '22 11:10 AtlasRW

Not support the file upload yet.

samchon avatar Oct 11 '22 11:10 samchon

But it must be someday. I'm developing typescript-json and this feature would be after that project.

samchon avatar Oct 11 '22 11:10 samchon

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

AtlasRW avatar Oct 11 '22 12:10 AtlasRW

Nope, only application/json is supported

samchon avatar Oct 11 '22 12:10 samchon

@samchon Any progress / ideas in this regard? We just ran into this today

DavidVaness avatar Jul 07 '23 08:07 DavidVaness

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.

samchon avatar Jul 07 '23 09:07 samchon