'how can I get a filename of images using muter upload.fields
Solution 1:[1]
You can iterate the object req.files and then again the result e get the filenames.
req.files.forEach(file => {
file.forEach(item => {
console.log("Filename", item.filename)
})
})
You can save it directly or append it to a list and then save them.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Shura16 |


