Download several images with one click

Hi, I have a table called “albums” and another called “photos”.I have a relation in wich every photo belongs to an Album.
what I want now is allow the user to download all the photos from one album with one click, that way the user should not download one by one… is there any way to do that?

Not natively, no.
The only way you could do that would be with an automation tool such as Make.

I think you can use a tool like Make to ZIP them into a single ZIP file, and present the user with the option to download that ZIP file.

1 Like

Does anyone know how to do this now? or is maybe something that’s coming in the glide “create file” integration?

Have you tried with AI Component? By asking to trigger download of all the provided images URL?

Sadly I don’t think “Create File” supports ZIP.

Figured that the allow download isn’t enabled on the AI Component iframe…

1 Like

What I know about the limitations of the AI component is that you can’t perform actions like play YouTube, download, print, and there’s also a limit on script length.

Script length???

Yes, I mean if you create a more complex component and require a much longer script, then every new piece of code added will override/cutting the old script that was already working fine. I have tried it in this thread: 🖌️Annotating Images in Glide: Free Draw and Text Input 🖼️

1 Like

Can’t tell you how many times I’ve run into that script length (token length) issue.

2 Likes

I have a couple proof of concepts that I’m working on.


This is with the custom AI component. This would be ideal, except that the sandboxed environment of the custom AI component prevents downloads at this time.



This is with a web embed. This requires a bit more customization and a few more columns to set up and get it to match the look and feel of the rest of the app:



It’s a little weird though that all files need to be downloaded to the device to create the zip file which is then saved to the device. A little counter-intuitive, but I think consolidating all other files into one zip file would be the preferred way to go in my opinion.

3 Likes

Hehehe… I also created a script for web embed, but unfortunately, I couldn’t test it. I think it can be done without having to convert it to a zip file. There might be some issues with browser settings.

1 Like

Yeah, not quite sure how easy it would be to force download instead of opening the file. Ideally you would be able to pick a destination directory once before downloading all of the individual files.

1 Like