How to parse this object?

{ file: 
 { data: <buffer 10 14 24 40 45 49 66 69 78 80 b4 d8 ff e1 00 2a 03 0d 08 01 02 ...>,
 name: '1_607.jpg',
 encoding: '7bit',
 mimetype: 'image/jpeg',
 truncated: false,
 size: 265201 } }
{ file: 
 { data: <buffer 10 43 46 48 49 d8 ff e0 00 4a 01 03 04 db 05 06 07 0a 0d 09 08 ...>,
 name: '9AkFnM9BAKM.jpg',
 encoding: '7bit',
 mimetype: 'image/jpeg',
 truncated: false,
 size: 125595 } }
{ file: 
 { data: <buffer 10 14 43 46 49 ff d8 e0 00 4a db 06 01 04 05 07 08 09 0a 0c 0e 0f ...>,
 name: '72_main.jpg',
 encoding: '7bit',
 mimetype: 'image/jpeg',
 truncated: false,
 size: 9924 } }</buffer></buffer></buffer>


It's not an array, I get these 3 file so. Index of Ala req.files[0] dostupatsya I can't...
July 8th 19 at 15:53
1 answer
July 8th 19 at 15:55
After Midler bodyParser in the res.body must be this object. Well, actually write data to the file stream.

Find more questions by tags Asynchronous programmingExpress.jsNode.js