How to download 2 or more files

download multiple pdf files from website at once
download multiple files from website
download multiple files at once
download multiple files at once javascript
download multiple files chrome
jquery multiple file download
download multiple files from website at once
download multiple links at once

So I need to download 2 files on a MVC Core application

I already have a download file code buy I dont really know how to make it to download 2 or more files

        public IActionResult DownloadSDESCypher()
            var net = new System.Net.WebClient();
            var data = net.DownloadData(sDESRepository.ObtainPathDownload());
            var content = new System.IO.MemoryStream(data);
            var contentType = "APPLICATION/octet-stream";
            var fileName = "CypherSDES.scif";
            return File(content, contentType, fileName);


It does download a file but I don't know how to make it to work with 2 or more files

Make it a single file; this will be consistent with the way the web works (think downloading files from Internet using your browser).

  1. Download two files on your action.
  2. Zip (or tar) them.
  3. Return the zip.

There is even a snippet for this ready at Using ASP.NET how can I create a zip file from an array of strings?.

How to download multiple files at once / Working with files, 2. Downloading all files that are attached to a task. If several files have been attached to a task, they can be downloaded at once by clicking on� Download File Joiner to Merge and Combine Two or Several Files Software - Easily combine content of two or more files of the same format, insert separator between them, in a quick and easy process

If you have a list of urls e.g:

endpoint/file1.pdf, endpoint/file2.pdf, endpoint/file3.pdf ...

You can run your DownloadData method inside a for loop and fetch these files one by one.

You can also use HttpClient since it's a more modern way of making requests asynchronously. See:

How to Enable or Disable Multiple File Downloads in Chrome, By default, Google Chrome asks for confirmation when a site tries automatically to download files in succession. However, if you want to block� Select the More button in Windows or the down arrow in macOS, which presents several optional settings that will dictate how the two files are compared, along with how changes will be noted in your newly-created document. Once satisfied with your settings, select OK to merge the two documents accordingly. Both the original and combined

Your question seems wrong. It seems to be "how do I offer two files for download"?

The Obvious Solution is to provide 2 download links. However if it absolutely has to be done in a single file and/or should contain folder structures, .zip files are the droid you are looking for.

If you want to download all code of a project from GitHub, they make a .ZIP file.

If you want to download a entire folder from a HFS instance, it will make you a .ZIP file.

ZipFiles can be easily created (and read/manipulated( using the ZipArchive class. You could do this on the fly, or have the .zip file pre-created in the Database with the source files.

Other formats like .tar, .rar or .7zip can be used. But .zip is the most universally compatible format. Even Windows has native support for it since XP.

How to Manage Multiple File Downloads in Google Chrome, This step-by-step tutorial shows how to use Chrome's automatic multiple file download feature to prompt you before it downloads additional files. How to combine PDF files online: Drag and drop your PDFs into the PDF combiner. Rearrange individual pages or entire files in the desired order. Add more files, rotate or delete files, if needed. Click ‘Merge PDF!’ to combine and download your PDF.

Download multiple files with a single action, There are two solutions: Open x amount of windows to initiate the file downloads (this would be done with JavaScript) PDFs: Right-click on the file and choose Save Link As. Webpages: At the top right, click More More Tools Save Page As. If asked, choose where you want to save the file, then click Save. Executable files (.exe, .dll, .bat): If you trust the file, confirm by clicking Save. If you're not sure about the contents of the download, click Discard.

Downloading Multiple Files from ConfTool, The first one - downloading multiple files as a ZIP-file - exists only for Image 2: Download multiple files for chairs and admins - click to enlarge� To select a group of folders or files in Windows File Explorer, just click on the first item in the folder, press the SHIFT key, and then click on the last item. Method Two. You can also choose a group of folders or files in File Explorer without the help of keyboard.

Chrome won't download multiple files, Unable to download multiple files at the same time in Chrome browser. RESOLUTION. Enable multiple downloads in browser. Click in the upper-right corner of� Add files: Click "Add Files" and select the files you want to include in your PDF. You can merge PDFs or a mix of PDF documents and other files. Arrange and delete content: Click, drag, and drop to reorder files or press "Delete" to remove any content you don't want. Combine files: When you're finished arranging, click "Combine Files".

  • Oh I see I didnt think about it that way Thank you!
  • @LuisOrtiz To be honest, only after tymtam's answer did I even consider this is what you meant. You got a odd case where you provide a download, that you yourself have to download first. So it is both downloading and offering a download.