How do I view multiple files (images, pdfs) in postman?

I am currently using node.js and express.

I want to view multiple images in postman. Right now, I am doing
res.status(200).sendFile(result[0].image)

Which allows me to see only the first image. However, I have multiple images I want to see. How am I supposed to do this?

Hi @technical-astronome7

If the result[0] is the image identifier then you could use the Postman visualize option.

Here is a working example (assuming the image is a url);

const results = pm.response.json();
console.log(results.data.memes.length);

const memesList = [];

for (i = 0; i < results.data.memes.length; i++){
    memesList.push("<img src=\""+results.data.memes[i].url+"\"></br>");
}

let urlList = 
pm.visualizer.set(`
    <html>
        <body>
            ${memesList}
        </body>
    </html>
`);

Output;

ezgif.com-gif-maker