I am trying to generate URL on users selection for download purpose. If user selects more than 1000 files the url does not work in IE as URL limitation of 2052 chars
Any other solution to get it worked in IE
As less files are selected it opens in new tab and after download starts it closes that window
but same think i do this with form submit in new TAB then TAB does not get close after download starts
So anyone can provide me the solution
below is my code:
<a target="_blank" id="abc" onclick="download()">
<script>
function download(){
var dataUrl="URL/download"
var paths=[];
for(var k = 0; k < len; k++) {
$cur = $list[k];
paths.push(JSON.parse($($cur).attr('json-data')));
}
dataurl += "&path=" + paths + "&fetchurl=1";
$('#abc').attr('href', dataurl);
}
</script>