Answers for "upload two files from same route"

0

upload two files from same route

app.use(
  multer(
    { 
      storage: fileStorage, 
      limits:
        { 
          fileSize:'2mb' 
        }, 
      fileFilter: fileFilter 
    }
  ).fields(
    [
      { 
        name: 'resume', 
        maxCount: 1 
      }, 
      { 
        name: 'image', 
        maxCount: 1 
      }
    ]
  )
);
Posted by: Guest on August-04-2020

Code answers related to "upload two files from same route"

Browse Popular Code Answers by Language