Reputation: 1
fs.readdir(uploads_folder, (err, files)=>{
console.log(files);
});
Output:
[
'306c630e6d9752a1fa60d2697a5c7921',
'7ce2c14c986ae3234ae12ad5826dd97f',
'9565e32910f30325e55fbc8e8a20182b',
'd8259d5cd3a53d15fdaa5049ca827e84'
]
I would like to get it with extension. Before writing this I've watched this video: https://www.youtube.com/watch?v=6jsAk-DDj2c and writting same code I don't get it anyway. Thanks for help.
Upvotes: 0
Views: 390