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::

enter image description here

no matter do.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -