DEV Community

Discussion on: NestJS: Creating a pipe to optimize uploaded images.

Collapse
 
andersonjoseph profile image
Anderson. J

There's no a straightforward way to get the request object within pipes. You probably need to create a custom decorator for that purpose.

Here's an article that explains an approach to it: dev.to/avantar/injecting-request-o...