javascript - Firefox - set Blob download source -
i creating script lets download csv file of current table on page this:
var downloadlink = document.createelement("a"); var blob = new blob(["", csvstring], {type: 'text/csv;charset=utf-8'}); if (navigator.appversion.tostring().indexof('.net') > 0) { window.navigator.mssaveoropenblob(blob, "daten.csv"); } else { downloadlink.href = window.url.createobjecturl(blob); downloadlink.download = "daten.csv"; downloadlink.style.display = 'none'; document.body.appendchild(downloadlink); downloadlink.click(); }
now if use ie asks if want download file localhost, in mozilla firefox download window says "from: blob:". can changed show host name or name specify (e.g. test)?
pitifully there's no available solution till date. the issue reported couple of years ago seems has minor importance level , no 1 asigned issue.
the label display from: blob:
:
no matter do.
Comments
Post a Comment