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. 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:.
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.
Update : I am aware that the "run code snippet" no longer works, but that's due to cross site cookie issues. The code works fine if deployed on your own site. 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? I agree that a zip file is a neater solution But if you have to push multiple file, here's the solution I came up with.
Chrome will display a message to user to obtain his agreement to download multiple files the first time your site use it. The only side effect of this technique, is that user will see a delay between submit and the download dialog showing.
To minimize this effect, I suggest you use the technique describe here and on this question Detect when browser receives file download that consist of setting a cookie with your file to know it has started download. You will have to check for this cookie on client side and to send it on server side. Don't forget to set the proper path for your cookie or you might not see it.
You will also have to adapt the solution for multiple file download. The browsers seem to have issues when you try to do it too fast So I used a timeout. To solve this, I created a JS library to stream multiple files directly into a zip on the client-side.
The main unique feature is that it has no size limits from memory everything is streamed nor zip format it uses zip64 if the contents are more than 4GB. Find "downzip" it on npm or github! Thus community wiki. I am looking for a solution to do this, but unzipping the files in javascript was not as clean as I liked. I decided to encapsulate the files into a single SVG file.
Edit: The SVG worked very well. If you are only going to download the files, ZIP might be better. If you are going to display the files, then SVG seems superior. When using Ajax components it is possible to start multiple downloads.
Create an AjaxButton and override onSubmit. Create an AbstractAjaxTimerBehavior and start downloading. Getting list of url with ajax call and then use jquery plugin to download multiple files parallel.
Here is the way I do that. Like this:. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Download multiple files with a single action Ask Question. Asked 11 years, 9 months ago. Active 2 months ago. Viewed k times. I am not sure if this is possible using standard web technologies. Improve this question. Ankur Ankur Thread starter Gsyclef Start date Aug 23, Gsyclef New Member. Joined Aug 23, Messages 2. I am using Excel on Windows 7.
I have a column, with each cell being a hyperlink to a PDF file on my network. I'd like to be able to click on all the hyperlinks simultaneously, so that the PDFs download to a specific folder, like let's say on my Desktop. Currently, I would have to click on each hyperlink and then Save As to the specific folder, one-by-one. Thank you for your help.
Excel Facts. Enter current date or time. Click here to reveal answer. I found the answer here: 3th try please help anyone? You must log in or register to reply here.
Similar threads H. Question VBA Create hyperlinks to files in folders from matching contents of cells with same folders name. I think you are not running the command from the correct path.
Here i have created download. HTTP request sent, awaiting response Ardhi Ardhi 2, 18 18 silver badges 28 28 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Who is building clouds for the independent developer?
Exploding turkeys and how not to thaw your frozen bird: Top turkey questions Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Linked 0. Related Hot Network Questions.
0コメント