Page 1 of 1
Batch Action to download selected files
Posted: 2022-02-28 17:31
by jangle
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
Re: Batch Action to download selected files
Posted: 2022-02-28 17:40
by jsetzer
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.
Re: Batch Action to download selected files
Posted: 2022-02-28 18:11
by jangle
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
Re: Batch Action to download selected files
Posted: 2022-03-01 23:28
by jangle
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
Re: Batch Action to download selected files
Posted: 2022-03-02 04:19
by jsetzer
Awesome! Please post your solution for helping others. Thank you!