[GH-ISSUE #837] new feature select all download #563

Open
opened 2026-03-02 15:59:49 +03:00 by kerem · 3 comments
Owner

Originally created by @BoneDeath on GitHub (Aug 9, 2022).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/837

Hi i love your project, and im developing your project to, im add new feature! Download all Selected file This feature support for all browser.
screenshot

Originally created by @BoneDeath on GitHub (Aug 9, 2022). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/837 Hi i love your project, and im developing your project to, im add new feature! Download all Selected file This feature support for all browser. [screenshot](https://user-images.githubusercontent.com/69179342/183556745-1ff0d3ff-dd27-4023-817c-0f65cb5635d2.png)
Author
Owner

@BoneDeath commented on GitHub (Aug 9, 2022):

I will happy if u using this code for your project!!


<button onClick="downloadAllSelected()">Download</button>

<script>
    function downloadAllSelected() {
        parent=$( "input:checked" ).closest("tr");
        child=parent.find("a[title=Download]");
        

        var a = child;
        for (var i=0, iLen=a.length; i<iLen; i++) {
        

            url = a[i].getAttribute("href");
            akhir = url.substring(url.lastIndexOf('/')+1);
            nama=akhir.substring(akhir.lastIndexOf('=')+1);


            if ('download' in a[i]) {
              a[i].download = nama;
            }
           
            if (a[i].click) {
              a[i].click(); 
            } else {
              $(a[i]).click();
            }
      }
    }
</script>
<!-- gh-comment-id:1208869251 --> @BoneDeath commented on GitHub (Aug 9, 2022): I will happy if u using this code for your project!! ``` <button onClick="downloadAllSelected()">Download</button> <script> function downloadAllSelected() { parent=$( "input:checked" ).closest("tr"); child=parent.find("a[title=Download]"); var a = child; for (var i=0, iLen=a.length; i<iLen; i++) { url = a[i].getAttribute("href"); akhir = url.substring(url.lastIndexOf('/')+1); nama=akhir.substring(akhir.lastIndexOf('=')+1); if ('download' in a[i]) { a[i].download = nama; } if (a[i].click) { a[i].click(); } else { $(a[i]).click(); } } } </script>
Author
Owner

@AgentSmith0 commented on GitHub (Aug 10, 2022):

Looks nice, maybe you should open a PR for this feature.

<!-- gh-comment-id:1210566066 --> @AgentSmith0 commented on GitHub (Aug 10, 2022): Looks nice, maybe you should open a PR for this feature.
Author
Owner

@gtbu commented on GitHub (Sep 9, 2022):

The above code doesnt function in my web-installation under Plesk in a subdomain....?
Bit i have the similar problem that its zips(tar's) only one folder of x selected - can You expand this script so far please...
(except that it zips big folders only partially - max 1.2GB - under plesk)

At https://github.com/g7sim/cmsimple-XH-CL/blob/master/cmsimple/userfuncs.php You find an GPL3 - Algorythm for recursive file-zip
or also
https://learncodeweb.com/php/select-and-download-multi-files-in-zip-format-with-php/

<!-- gh-comment-id:1242490413 --> @gtbu commented on GitHub (Sep 9, 2022): The above code doesnt function in my web-installation under Plesk in a subdomain....? Bit i have the similar problem that its zips(tar's) only one folder of x selected - can You expand this script so far please... (except that it zips big folders only partially - max 1.2GB - under plesk) At https://github.com/g7sim/cmsimple-XH-CL/blob/master/cmsimple/userfuncs.php You find an GPL3 - Algorythm for recursive file-zip or also https://learncodeweb.com/php/select-and-download-multi-files-in-zip-format-with-php/
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#563
No description provided.