show filenames of file upload with console.log(req.files)
<p>I have a file upload with node js and multer and want to show the names of the uploaded files in the terminal. But I only get <code>Selected Files: [object Object],[object Object],[object Object]</code></p>

<pre><code>router.post('/upload', function(req,res){
    upload(req,res,function(err) {
        console.log('Selected Files: ' + req.files);
        if(err){
            res.end("Error: '" + err + "'");
        }else{
        console.log('Files uploaded!');
        res.sendStatus(204);
        }
    });
});
</code></pre>

<p>I also tried req.files.filename but it gave me the output: <code>Selected Files: undefined</code></p>

<p>How can I show the names of the uploaded files? </p>