cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver II
Resolver II

Download multiple files from gallery

Hello Microsoft Team,

 

i have posted this below comment two months ago and i have not recieved any solution or comment, well shall consider the below question is still under progress.

 

Perhaps i have received the work around but i have used the workaround for time being, in fact i have posted the idea on PowerApps too.

 

"Is it possible to download multiple files within the gallery, in my case i have gallery which has a document library from Sharepoint.

 

And i have added the checkbox controller to the gallery which are "Select All" for Multiple files(10+ or more) and Select the files which are needed(2 or 3 out of 10), so that when needed user can select the multiple documents using checkbox and download in zip file or normal download but How can this be accomplished? However i can dowload or launch the single file at a time."

 

Workaround was from support team:

 

The OnSelect property of the Download button control set to following formula:

Download(Substitute(First(Split(First(Filter(Gallery1.AllItems,Checkbox1.Value=true)).'{Link}',"?")).Result,"%20"," "))

If you want to dowload or launch the single file at a time, please take a try to set OnSelect property of the Download button to following formula:

Download(Substitute(First(Split(First(Filter(Gallery1.AllItems,Checkbox1.Value=true)).'{Link}',"?")).Result,"%20"," "));Launch(First(Filter(Gall

 

But it would be more helpful if the multiple download function was solved.

 

Thanks in advance and Appreciated !

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Download multiple flies from gallery

Hi @Nikhil2,

 

Do you want to download multiple files once time from your Gallery control?

 

I found that you have posted same thread before within this forum as below:

https://powerusers.microsoft.com/t5/General-Discussion/Download-Multiple-Documents-from-Gallery-Usin...

 

As an alternative solution, if you want to download multiple files once time from your Gallery control, please take a try with the following workaround:3.JPG

 

 

Set the OnSelect property of the Button control to following formula:

ForAll(
Filter(Gallery1.AllItems,Checkbox1.Value=true),
Download(Substitute(First(Split('{Link}',"?")).Result,"%20"," "))
)

More details about the ForAll function in PowerApps, please check the following article:

ForAll function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Resolver II
Resolver II

Re: Download multiple flies from gallery

Hello Kris,

 

Perfect, This is the one which i was looking from all these days and i have submitted the idea for this. Thank you for showing the workaround.

 

Thanks and Regards,

Nikhil

View solution in original post

11 REPLIES 11
Highlighted
Community Support
Community Support

Re: Download multiple flies from gallery

Hi @Nikhil2,

 

Do you want to download multiple files once time from your Gallery control?

 

I found that you have posted same thread before within this forum as below:

https://powerusers.microsoft.com/t5/General-Discussion/Download-Multiple-Documents-from-Gallery-Usin...

 

As an alternative solution, if you want to download multiple files once time from your Gallery control, please take a try with the following workaround:3.JPG

 

 

Set the OnSelect property of the Button control to following formula:

ForAll(
Filter(Gallery1.AllItems,Checkbox1.Value=true),
Download(Substitute(First(Split('{Link}',"?")).Result,"%20"," "))
)

More details about the ForAll function in PowerApps, please check the following article:

ForAll function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Resolver II
Resolver II

Re: Download multiple flies from gallery

Hello Kris,

 

Perfect, This is the one which i was looking from all these days and i have submitted the idea for this. Thank you for showing the workaround.

 

Thanks and Regards,

Nikhil

View solution in original post

Highlighted
Resolver II
Resolver II

Re: Download multiple flies from gallery

Hello Kris, 

 

Apologies for the inconvience.

 

I have forgotten to ask this question in the main stream. Multiple download is working fine, but is it possible download those files as Zip?

 

Thanks in advance!

Highlighted
Super User
Super User

Re: Download multiple flies from gallery

Best i can tell there is no way to create a Zip file with PowerApps or Flow.

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training
Highlighted
Resolver II
Resolver II

Re: Download multiple flies from gallery

Then is there any way or can we download in bulk?

Super User
Super User

Re: Download multiple flies from gallery

Does the ForAll code above work? Seems like it should to me.

 

Thanks

 


Shane

 

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training
Highlighted
Resolver II
Resolver II

Re: Download multiple flies from gallery

It is working and i am using the same code to download multiple files, i have couple of option on my app.

 

1. Download which it helps the user to download one file at a time(Click download, Click Download).

2. Second is above ForAll Function user clicks on checkbox press button and download all files which are selected.

 

But instead of downloading all files as one after the other or just open file by file, i am looking to download in Zip(Which is not an option) or in a folder.

 

Highlighted
Resolver II
Resolver II

Re: Download multiple flies from gallery

Unfortunately, Now the ForAll function is not working at the moment previous day when i selected multiple checkboxes and start to download it was totally working fine but now its a disaster. It is not working it is downloading only one file which is first file of the gallery item.

Highlighted
Anonymous
Not applicable

Re: Download multiple files from gallery

Hi ,

 

I want to download the all gallery items in excel

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,662)