typescript-rest icon indicating copy to clipboard operation
typescript-rest copied to clipboard

Multer

Open giladsch opened this issue 5 years ago • 1 comments

How to i use multer with the library? I use multer for uploading files. In my code I have export upload Array = multer({}).array('files'). And it is kind of Middleware that accept the request and the response but I don't have them so I can I get them or have some workaround? So if some one use this library with multer I would like to know how.

giladsch avatar Nov 15 '20 12:11 giladsch

Checkout the @FileParam decorator for your request parameters: https://github.com/thiagobustamante/typescript-rest/wiki/Request-Parameters

donaldpittard avatar Mar 30 '22 13:03 donaldpittard