Relative Content

Tag Archive for node.jstypescriptexpress

Extend Request in Express RequestHandler for middlewares with TypeScript

Technologies node express passport Problem I have a middleware (passport-azure-ad) which authenticates the user and then adds the user and his permissions to the request object. In my Express RequestHandlers, when trying to access that user, it says, that the field does not exist on the type. How to solve this issue? What I tried […]

Cloudinary upload aggregateError in nodejs, multer, express, typescript

I am using Cloudinary to upload images using Multer in my Nodejs, Expressjs, and Typescript applications. In my route req.file a file is coming from the frontend but it is uploading to Cloudinary using uploadImage function it is giving me the console aggregate error I set everything from documentation from Cloudinary beacuse I am uploading the base64 string to Cloudinary. How to solve this problem. Please help to solve this error.