Tigger Array (multiple) file downloads

Any way to trigger an array of PDF links to open/download with the ‘open links’ action? (I want to trigger a multiple file download action)

Note: the list of files are in a Relation/Query Array

I’m not aware of any methods to do that. Usually the browser is against opening multiple links at once anyway, at least Safari does it that way.

I believe it’s doable in Chrome. For example in Google sheets you can select many cells with URL’s and “Open Links”, which will open all of them.

Question is whether I can somehow simulate an array of 3 URL’s in Glide to open.

Nope, Chromium in any browser will prevent that action. With a warning in bottom left of screen. It’s like with generate PDF at once.

Hmm -
I guess I’ll have to build a custom API to compress them into Zip files

You can also use Webhooks, to send to Make, and then do your scenario.
It’s quite easy and fast to use Make.com for that.

And yes you can simulate, even try console.log for any variable in input (basics of Javascript).

Elaborate what you mean by simulate with console.log

For me, I think using Make to ZIP your files first before showing a single button to download that ZIP is your best bet.

So the user is able to filter a list (which is a query of many items), each items can have up to 3 files related to it in a documents table referencing the item_id.

At the top of the collection I want to create a button where the user can download all the files associated with the items filtered out as a zip.

Is that a native filter in a collection, or a custom filter?

Custom filter

Then I think you can find a way to get all file links in one place after applying the custom filter, then send those to Make, and update that back to a column/add a new row in Glide to allow the user to download.

Yes, I ended up taking the route of- creating a CSV of record ID’s containing URL’s > HTTP to n8n to query the documents > API to compress > API responds with a URL containing the zipped folder which downloads it automatically

1 Like

Do you use n8n cloud version? I have always wanted to dive into it but haven’t got time.

Yes, using cloud.
Self hosted for some projects.

Used to use make for everything.

1 Like

Is it cheaper than Make for the cloud version? I guess yes?

Definitely is, especially for larger workflows. n8n counts executions fo workflows, no matter how many operations within. Whereas make charges per operation.

Another big factor is now that Claude sonnet and GPT4 are so effective at basic JavaScript, it’s much more efficient and simpler to write little JavaScript(s) for some things over using a bunch of no-code modules in make.

2 Likes

Thanks for sharing!

Ofc!

1 Like