Questions tagged [filesaver.js]

FileSaver.js implements the HTML5 W3C saveAs() FileSaver interface in browsers that do not natively support it

FileSaver.js is the solution to saving files on the client-side, and is perfect for web applications that need to generate files, or for saving sensitive information that shouldn't be sent to an external server.

316 questions
5
votes
0 answers

nvd3.js pie chart export to Excel in angular js

I am using nvd3.js to create a pie chart. I would like to export this chart to Excel. For export I am using FileSaver.js My HTML looks like:
Surajghosi
  • 226
  • 1
  • 2
  • 9
4
votes
0 answers

ICS files on iOS Safari browser

I'm creating an ICS file that works well with Android/Windows, but on iOS (Safari) it seems it has a problem working with downloading the file in proper format. Using FileSaver.js extension. Issue was highlighted back in 2013 -…
Rain
  • 249
  • 6
  • 14
4
votes
2 answers

cross-browser solution for downloading large files from authenticated endpoint

I'm searching for a way for downloading big files (like 2 - 4 Gb) on a bearer token protected api endpoint, that works on all common browsers (IE 11, Chrome, Firefox, Android Browsers, Safari). It should work with angular/ts and browsers only…
Benjamin Schäublin
  • 1,526
  • 1
  • 16
  • 26
4
votes
2 answers

Cannot read property 'saveAs' of undefined

I want to be able to create and download a file in an Angular component. In order to do that I'm using FileSaver.js. Even though I have imported it in my component, I get this error in console: ERROR TypeError: Cannot read property 'saveAs' of…
eli
  • 313
  • 3
  • 6
  • 17
4
votes
2 answers

Download a file in Angular 2

I want to download a file in pdf in Angular 2, I am using FileSaver.js to save the file as pdf. (response) => { var mediaType = 'application/pdf'; let pdfContent = response["_body"]; var blob = new Blob([pdfContent], {type:…
Uzair Khan
  • 2,812
  • 7
  • 30
  • 48
4
votes
1 answer

XMLHttpRequest: Network Error 0x800c0007, No data is available for the requested resource

I have an app that is failing to load in IE. When I look in the console I see The same code works in IE11 but the code not woking in RDP IE11 couldnot find out exact cause for the issue. During save it says couldn't download zip…
Lier
  • 308
  • 3
  • 16
4
votes
0 answers

Save Large files from a Web Browser

I am starting developing a google-chrome app to be used to write a large file (128GB), locally on the file system. Basically I receive a binary vector from a websocket and I would like to write this data to the file system to be used by another…
4
votes
1 answer

Angular 2: File Saver

iam trying to implement a download button in my Angular 2 application. I have used these tutorials: http://alferov.github.io/angular-file-saver/ https://coryrylan.com/blog/angular-2-cli-adding-third-party-libraries So i installed file-saver by: npm…
Simon
  • 925
  • 3
  • 13
  • 30
3
votes
2 answers

File Download Prompt not Showing in Samsung Internet Browser App on a Samsung Galaxy Phone

Context and Problem Statement We are currently developing a single-page-application with an API backend. The API provides files to the single-page-application which are generated on-the-fly on request on the server. Some files take very little time…
3
votes
2 answers

File saver is deprecated. How to resolve this issue from SonarQube

Working on filesaver, while running SONAR QUBE it shows " 'fileSaver' is deprecated. use { autoBom: false } as the third argument " this.http.get(`getTemplate/${doc.id}`, { responseType: 'blob' }).subscribe( (data: any) => { …
3
votes
2 answers

angular-file-saver is not installed

Hi All Experts of Angularjs I am using bower install for my angular project "file-saver.js": "^1.20150507.2", "angular-file-saver": "^1.1.3", I am getting error when bower install, FileSaver repository not found, I checked it in GitHub, This…
3
votes
0 answers

Exported property gets hidden in dynamic import using webpack

In the latest webpack version (5+) when i try to use exported content of dynamic loaded module i can't see its property (got undefined) - the only way is to use module.default.method instead of module.method. I noticed that using file-saver library,…
3
votes
0 answers

Can't specific file name with FileSaver.js

FileSaver.js https://github.com/eligrey/FileSaver.js Tested in Chrome and Safari. Chrome save file as download and Safari save file as unknown. Tried var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"}); FileSaver.saveAs(blob,…
phint
  • 31
  • 3
3
votes
1 answer

XLSX.utils.book_new() is not a function error

I am using SheetJS library to convert Excel to JSON and vice versa. While the code to convert Excel to JSON works fine, there are issues with the code to convert JSON back to Excel. Please find the code below: var wb =…
Ashy Ashcsi
  • 1,529
  • 7
  • 22
  • 54
3
votes
1 answer

Streaming file to file system using angular 7

I am trying to develop a file download using angular 7. I am using HttpClient and FileSaver for download. The problem I am having is that, when the HttpClient makes the download request to the server, it waits for the entire response to be completed…
Amit Pokhrel
  • 282
  • 4
  • 21
1 2
3
21 22