Block multiple files downloading
Here's how you can create and manage templates in Gmail. Are the web pages acting weirdly on Google Chrome? Here's how you can fix unresponsive web pages in the Google Chrome browser. Security, Compliance and Identity. Microsoft Edge Insider.
Azure Databases. Project Bonsai. Education Sector. Microsoft Localization. Microsoft PnP. Healthcare and Life Sciences. We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. Read More Do not sell my personal information.
Close Privacy Overview This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website.
We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary Necessary. Necessary cookies are absolutely essential for the website to function properly. Active 2 months ago. Viewed k times. I am not sure if this is possible using standard web technologies. Ankur Ankur Add a comment.
Active Oldest Votes. I am working with many file types, including pictures, and this worked best for me. However, link. It does not work in IE 11, it only downloads the. AngeloMoreira Yep, at least it works in Edge. If you try downloading multiple files in IE on MS sites, for example , they spawn multiple pop-up windows, so i think best solution for IE is still from Dmitry Nogin above.
Add the link. This allows you to name the files anything you wish. Also, I believe it needs to be the filename only not including the URL.
I ended up sending two arrays: one with the full URL and one with just the filename. It does not work properly in Chrome v75, Windows The only file that is downloaded is Minecraft.
Show 8 more comments. HTTP does not support more than one file download at once. There are two solutions: Open x amount of windows to initiate the file downloads this would be done with JavaScript preferred solution create a script to zip the files.
Jacob Relkin Jacob Relkin k 29 29 gold badges silver badges bronze badges. Why is a zip file the preferred solution? It creates an extra step for the user unzipping. This page contains javascript which creates ZIP file. Look at the page it has a great example.
A third way is to encapsulate the files into a SVG file. If the files are displayed in the browser, the SVG seems to be the best way. HTTP itself supports multipart message format. But browsers don't portably parse multipart responses from the server side, but technically there's nothing difficult with doing this. This can be an excelent solution with javascript github. Show 1 more comment. Ben Gotow Dmitry Nogin Dmitry Nogin 3, 1 1 gold badge 17 17 silver badges 33 33 bronze badges.
To me the reason seems that the page reloads after script is executed, seems to be the reason for files not getting downloaded. Any clue on what wrong I am doing? I've got multiple issues with this solution. In IE since my parent window has changed the document. There's various post about fixing this, but all feel hacky.
0コメント