Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

msSaveBlob is giving - file couldnt be downloaded error.

$
0
0

Hi ,

I have been using msSaveBlob() command to download a csv file to local. But recently I am getting this issue that although navigate.msSaveBlob is returning true, and there are no errors on console, I am being prompted that "File Couldn't be downloaded. Retry or Cancel"

I am working on IE version 11, Windows 7 OS.

I also tried the samples from https://msdn.microsoft.com/en-us/library/hh779016(v=vs.85).aspx. But facing the same issue. Kindly suggest me how to resolve this issue.

Code Snippet:

var blob = new Blob(["Sample String\r\n,For Checking, msSaveBlob"],{

type:'text/csv;charset=utf-8;'

});

if(navigator.msSaveBlob){

navigator.msSaveBlob(blob,"sample.csv");

}


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>