Batch Action to download selected files

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
jangle
Veteran Member
Posts: 89
Joined: 2020-01-18 17:41

Batch Action to download selected files

Post by jangle » 2022-02-28 17:31

Good day,

Would any of you know any code (for my hooks file) that would download all of the files that are selected in a table.

I am hoping to add to other actions.

So the users would select the check box, then select more actions and a download all would be available.

Any thoughts or help would be greatly appreciated.

Thanks

Jim

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Batch Action to download selected files

Post by jsetzer » 2022-02-28 17:40

download all of the files that are selected
Most web apps I know compress selected files and provide a download of one zip file, containing the selection. Honestly speaking, I'm afraid you cannot download multiple files with one click. At least I have never seen this in PHP+Javascript. Do you know any sample page for multiple file download? Maybe we can learn how to do.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

jangle
Veteran Member
Posts: 89
Joined: 2020-01-18 17:41

Re: Batch Action to download selected files

Post by jangle » 2022-02-28 18:11

Thank you, sir.

No I have never seen one like I am thinking of. Would there be a way to select then zip them, then download?

Actually, for every download it would be ALL of the files in the subdirectory. So I do not need to select. Maybe just a link called download all and the php code for that???

Wonder if that would be the solution?

Thanks

Jim

jangle
Veteran Member
Posts: 89
Joined: 2020-01-18 17:41

Re: Batch Action to download selected files

Post by jangle » 2022-03-01 23:28

Issue solved

Found an example of how to zip the whole directory, then download.

Since I will want all of the files at a given time this worked for me.

Thanks, Jan, for your feedback.

Jim

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Batch Action to download selected files

Post by jsetzer » 2022-03-02 04:19

Awesome! Please post your solution for helping others. Thank you!
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply