Coder Social home page Coder Social logo

Comments (14)

alferov avatar alferov commented on May 28, 2024

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.

dohomi avatar dohomi commented on May 28, 2024

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.

alferov avatar alferov commented on May 28, 2024

Hhhm, interesting.
Let me test it once I get home.
Oh, you can check the Chrome version in Settings -> About.

from angular-file-saver.

dohomi avatar dohomi commented on May 28, 2024

Ah yes: 45.0.2454.89

from angular-file-saver.

alferov avatar alferov commented on May 28, 2024

Ok, thanks!

from angular-file-saver.

alferov avatar alferov commented on May 28, 2024

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.

dohomi avatar dohomi commented on May 28, 2024

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.

dohomi avatar dohomi commented on May 28, 2024

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.

alferov avatar alferov commented on May 28, 2024

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.

alferov avatar alferov commented on May 28, 2024

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.

dohomi avatar dohomi commented on May 28, 2024

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.

dohomi avatar dohomi commented on May 28, 2024

forget my previous statement... For sure I needed to update the saveAscall I didn't read the changelog.. All good again. Do you know the meaning of disableAutoBOM?

from angular-file-saver.

alferov avatar alferov commented on May 28, 2024

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.

DrMantisT avatar DrMantisT commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.