por que no puedo desarmar el array de multer para obtener el path de cada foto utilizando la función "any" de multer el array que me da es el siguiente:
[
{
"fieldname": "foto1",
"originalname": "ExitoRF.png",
"encoding": "7bit",
"mimetype": "image/png",
"destination": "upload",
"filename": "efb12980-61af-483c-b91f-368dfd753355.png",
"path": "upload/efb12980-61af-483c-b91f-368dfd753355.png",
"size": 683625
},
{
"fieldname": "foto2",
"originalname": "Captura de pantalla_2019-08-07_11-36-50.png",
"encoding": "7bit",
"mimetype": "image/png",
"destination": "upload",
"filename": "7c149682-09fc-438c-ac40-82928cf87c73.png",
"path": "upload/7c149682-09fc-438c-ac40-82928cf87c73.png",
"size": 265577
},
{
"fieldname": "foto3",
"originalname": "Captura de pantalla_2019-08-12_18-42-25.png",
"encoding": "7bit",
"mimetype": "image/png",
"destination": "upload",
"filename": "936dcd9f-fab8-4429-9620-8e977b8d25a1.png",
"path": "upload/936dcd9f-fab8-4429-9620-8e977b8d25a1.png",
"size": 663554
},
{
"fieldname": "foto4",
"originalname": "Captura de pantalla_2019-08-15_20-34-51.png",
"encoding": "7bit",
"mimetype": "image/png",
"destination": "upload",
"filename": "01a8bc76-954b-4bc8-9770-d25ad59de4b8.png",
"path": "upload/01a8bc76-954b-4bc8-9770-d25ad59de4b8.png",
"size": 822206
}
]
intente pasarlo a una const XXX=req.files pero todo lo que intento me da error . desde ya gracias
const arr = req.files; arr.forEach((x) => { console.log(x.originalname) });