Comments (14)
This package is just a convenient Filesaver.js & Blob.js wrapper for the Angular ecosystem. Unfortunately, Filesaver.js has some known issues in Safari.
Which version of Chrome are you using?
Could you test it on http://eligrey.com/demos/FileSaver.js?
Thank you!
from angular-file-saver.
Hi @alferov I tested the eligrey demo and there it works without problem. I don't find the version of chrome...
from angular-file-saver.
Hhhm, interesting.
Let me test it once I get home.
Oh, you can check the Chrome version in Settings -> About.
from angular-file-saver.
Ah yes: 45.0.2454.89
from angular-file-saver.
Ok, thanks!
from angular-file-saver.
I tested both Filesaver.js & this package on iOS 9 (in both Chrome & Safari) last night. Both Filesaver and angular-file-saver open new tab (which is fine due to iOS restrictions). But unlike angular-file-saver, Filesaver pre-fills that window with the saving content 😧
from angular-file-saver.
All I'd think about it might be the click event ... Maybe try not using ng-click but the native click event? Not sure if it would make a difference? I'm pretty packed with work today, let me know if I can support you somehow
from angular-file-saver.
Hi @alferov did you find out anything about this issue? I did lots of testing, it works well on almost every browser. Only chrome on iOS fails at the moment. Cheers
from angular-file-saver.
Yes, I did. It's a problem with FileSaver.js itself.
I created a dummy page, added FileSaver & Blob, and opened it on iOS 9.1. And guess what? I got the same issue. I'll upload it to gh-pages
and open a new issue in the FileSaver repo tomorrow.
Thank you for your contribution!
from angular-file-saver.
BTW, version of the script used for the demo is not up to date:
http://eligrey.com/demos/FileSaver.js/FileSaver.js
/* FileSaver.js
* A saveAs() FileSaver implementation.
* 2013-01-23
from angular-file-saver.
Hi @alferov after upgrading to 1.0.0 your plugin doesn't work any more. I didn't change a line of code but now the Blob isn't recognized or generated any more:
Error: Data argument should be a blob instance
at Object.FileSaverUtils.handleErrors
I create the blob how you described it inside of the demo
from angular-file-saver.
forget my previous statement... For sure I needed to update the saveAs
call I didn't read the changelog.. All good again. Do you know the meaning of disableAutoBOM
?
from angular-file-saver.
By default, FileSaver prepends BOM to UTF-8 files. There is a nice explanation of the difference between these encodings on stackoverflow.
from angular-file-saver.
Hi guys,
I'm pretty new to this so be gentle. I just ran into this issue on ios chrome. I followed along but lost the convo right around Oct. 27th due to me mostly being a newbie. Is this still a bug for ios chrome or did you guys find a solution?
from angular-file-saver.
Related Issues (20)
- Save streamed data body from $http.get request
- Not saving files properly with .xls extension
- How to set the path for saved files HOT 1
- Saving data to a file without overwriting file's content?
- new Blob not working in Safari. HOT 2
- Change the Format of Encoding/File HOT 1
- Downloaded file is corrupted HOT 2
- Is there a way to attach a promise to the save as? HOT 1
- Images getting corrupted on download
- Safari usage requires the User to Specify the blob type as "application/octet-stream"
- [Feature Request] Broadcast saveAs() result
- Doesnt work in iOS Firefox
- [BUG] Not working with AVIRA antivirus
- Downloading a zip file containing multiple csv files
- Download multiple files with a loop on Chrome 65
- save file as pdf or word from string base64 or blob
- The file format and extension of ABC.xls don't match.
- how can i save to a different location?
- Missing Bower Dependency HOT 9
- Authentication failed for 'https://github.com/Teleborder/FileSaver.js.git/' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-file-saver.