Single button to download all files from multiple file fields

  • Posted 2 weeks ago

Hi Voxel team,

I’m trying to create a single “Download all files” button on a single post page.

I have three file fields:

file → PDF files
file-2 → Word, PowerPoint and other document files
image-2 → Images (PNG, JPG, etc.)

When I use:

@post(file.url)

it works correctly for a single file.

However, when there are multiple files, I use a Loop Element based on:

@post(file)

but this creates 3, 4 or 5 separate buttons (one per file).

What I would like instead is:

– Display only one button
– When the user clicks it, all files from the field are downloaded
– Ideally, all files from file, file-2 and image-2 should be included
– Either as multiple downloads or as a generated ZIP archive

Is there a built-in Voxel solution for this, or would this require custom PHP/JavaScript?

Thank you!