Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

186
Views
how to resize uploaded image with multer

after posting a form and before saving the image ( uploaded from the form), I want to resize it so that when it will be using it, it will be shown with the right size on the website.

const fileStorageEngine = multer.diskStorage({
    destination: (req,file,cb)=>{
        cb(null, "./public/images");
    },
    filename: (req,file,cb)=>{
        cb(null, `${Date.now()}--${file.originalname}`);
    }
});

this is my code defining destination and filename, I was wondering where could I check for it's size.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!