Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

multer upload fields nodejs s3

app.post('/upload', upload.fields([
  { name: 'avatar', maxCount: 1 },
  { name: 'gallery', maxCount: 8 }
]), function (req, res, next) {
    console.log('Uploaded!');
    res.send(req.files);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multer #upload #fields #nodejs
ADD COMMENT
Topic
Name
2+3 =