Download multiple files with a single action

download multiple files at once javascript
how to download multiple files in single click in php
javascript download multiple files zip
javascript download multiple images
sharepoint javascript download multiple files
node js download multiple files
chrome javascript download multiple files
jszip multiple files

I am not sure if this is possible using standard web technologies.

I want the user to be able to download multiple files in a single action. That is click check boxes next to the files, and then get all the files that were checked.

Is it possible - if so what basic strategy do you recommend. I know I can use comets technology to create server side events that trigger an HttpResponse but I am hoping there is a simpler way.

Download multiple files with a single action using jQuery, Is it possible to download multiple files with a single click using jQuery? So far, I have this code. Found it somewhere but it only downloads the  Download source files - .64 Kb; Introduction. Have you ever wanted to make a simple form do multiple actions and you didn't know how. The answer was hidden from me for some time, but I managed to imagine how to do this when I read an article by Chris Maunder "Specifying multiple actions from a single Form".

var links = [

function downloadAll(urls) {
  var link = document.createElement('a');

  link.setAttribute('download', null); = 'none';


  for (var i = 0; i < urls.length; i++) {
    link.setAttribute('href', urls[i]);;

<button onclick="downloadAll(window.links)">Test me!</button>

Downloading multiple files, The problem is that a few images are not downloaded when I use the way of opening the download link of image like ['/servlet/servlet. Sometimes happens that some people need to download multiple file from a single user interaction: the click on the link. Assuming that your browser suppors Javascript and considering to use jQuery to simplify the concepts, you can use a simple script to accomplish this job.

You can create a temporary set of hidden iframes, initiate download by GET or POST inside of them, wait for downloads to start and remove iframes:

  <button id="download">Download</button> 

  <script type="text/javascript" src=""></script>
  <script type="text/javascript">

     $('#download').click(function() {

     var download = function() {
       for(var i=0; i<arguments.length; i++) {
         var iframe = $('<iframe style="visibility: collapse;"></iframe>');
         var content = iframe[0].contentDocument;
         var form = '<form action="' + arguments[i] + '" method="GET"></form>';
         $('form', content).submit();
         setTimeout((function(iframe) {
           return function() { 
         })(iframe), 2000);


Or, without jQuery:

 function download(...urls) {
    urls.forEach(url => {
      let iframe = document.createElement('iframe'); = 'collapse';

        `<form action="${url.replace(/\"/g, '"')}" method="GET"></form>`

      setTimeout(() => iframe.remove(), 2000);

how to download multiple files with javascript one by one in a loop , You can easily download single files from ConfTool by clicking on the In the box "Actions" on right-hand side, click on "Save files of current  For example, user can download all the files in Coursera lessons in one shot. This would save lot of time. Multiple file downloader facilitates the same. It scans through the web page and displays all the files, which user can download. User can select multiple files and click download.

This solution works across browsers, and does not trigger warnings. Rather than creating an iframe, here we creates a link for each file. This prevents warning messages from popping up.

To handle the looping part, we use setTimeout, which is necessary for it to work in IE.

 * Download a list of files.
 * @author speedplane
function download_files(files) {
  function download_next(i) {
    if (i >= files.length) {
    var a = document.createElement('a');
    a.href = files[i].download; = '_parent';
    // Use if available, it prevents plugins from opening.
    if ('download' in a) { = files[i].filename;
    // Add a to the doc for click to work.
    (document.body || document.documentElement).appendChild(a);
    if ( {; // The click method is supported by most browsers.
    } else {
      $(a).click(); // Backup using jquery
    // Delete the temporary link.
    // Download the next file with a small timeout. The timeout is necessary
    // for IE, which will otherwise only download the first file.
    setTimeout(function() {
      download_next(i + 1);
    }, 500);
  // Initiate the first download.
  // Here's a live example that downloads three test text files:
  function do_dl() {
      { download: "", filename: "regs.txt" },
      { download: "", filename: "standards.txt" },
      { download: "", filename: "example.txt" },
<button onclick="do_dl();">Test downloading 3 text files.</button>

Downloading Multiple Files from ConfTool, <p>This example is related to <a href="​download-on-single-link-click/">Multiple files download on single link click</a>. 7​. Hi, I have a web application . It has a download button clicking on which user should be able to down load multiple files. But all files should be downloaded on a single click.

Easiest way would be to serve the multiple files bundled up into a ZIP file.

I suppose you could initiate multiple file downloads using a bunch of iframes or popups, but from a usability standpoint, a ZIP file is still better. Who wants to click through ten "Save As" dialogs that the browser will bring up?

Download multiple file using data URI - JSFiddle, For example, user can download all the files in Coursera lessons in one shot. This would save lot of time. Multiple file downloader facilitates the  If you truly just want to just "download" the folder and not "clone" it (for development), the easiest way to simply get a copy of the most recent version of the repository (and therefore a folder/file within it), without needing to clone the whole repo or even install git in the first place, is to download a zip archive (for any repo, fork

Multiple File Download, Code Issues 2 Pull requests 0 Actions Security 0 Pulse. Download multiple files at once in the browser - Star 472. File Sharing. qBittorrent Free Bittorrent Client 4.2.5. Online Storage. Dropbox Great Online Backup/File Sync 96.4.172. Google Backup and Sync Online Backup/File Sync 3.49.9800.0000. OneDrive Online File Sync by Microsoft 19.232.1124.0012. SugarSync Online Backup/File Sync Other. Evernote Online Notes Google Earth

sindresorhus/multi-download: Download multiple files at , I am not sure if this is possible using standard web technologies. I want the user to be able to download multiple files in a single action. That is click check boxes  Which is faster, downloading multiple files and distributing the bandwidth across them all, or concentrating it into one at a time? This question is more related to torrenting. I have about 20 files in one download, all over 1GB and a few are over 10.

Download multiple files with a single action - http - iOS, I'm trying to achieve a functionality to download multiple files on a single button click. What I have done for now is that I've used a JQuery plugin that does this: MSI Multiple-file downloader uses the new HTML5 "download" attribute to decide if a file is downloadable. If anything on the page is downloadable, you see the download icon in your address bar. Click on the icon, choose the files you want and Firefox does the rest. MSI Multiple-file downloader works with non-HTML5 pages, too.