Click here to Skip to main content
15,892,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used msSaveBlob() command to download a csv file to local. I am facing an issue 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 IE11, and OS is Windows Server 2012 R2. I tried updating IE. But still it is not working.

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.

What I have tried:

The code which I have tried is
Code Snippet:

JavaScript
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");
Posted
Updated 6-Mar-19 22:21pm

1 solution

Does there any error message prompt, if not, you may have disabled the download in your browser Settings
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900