Are you sure that your auth is fine? Asking for help, clarification, or responding to other answers. LO Writer: Easiest way to put line of words into table as rows (list). How to generate a horizontal histogram with words? The limits property describes the maximum size of the file. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. GridFS by any chance? Can "it's down to him to fix the machine" and "it's up to him to fix the machine"? Fixed it by moving my controls to a middleware to call before multer, so I can use multer as middleware (inspired by this comment Nodejs Express 4 Multer | Stop file upload if user not authorized): Thanks for contributing an answer to Stack Overflow! Now let's configure Multer as a middleware that we can use with any route that needs to upload an image. Final html file (public/index.html) will look like. How can I get a huge Saturn-like ringed moon in the sky? In Express, middleware processes and transforms incoming requests to the server. Level 1: [] .Copy-paste the above html boilerplate into an index.html file [] .Set up your Node/Express server like we've previously seen [] .Create a POST route handler for /upload-profile-pic [] .Try to set up Multer on your server following the documentation. Project Setup Not the answer you're looking for? In our case, Multer acts as a helper when uploading files. if the csurf token and Water leaving the house when water cut off. Could you push your whole project to either Github or any other repo. I can see you are doing everything right. Can we configure multer to not store files locally and only for using req.files.image.path? I guess it could be because the