Skip to content

Commit

Permalink
Update README.md (#12)
Browse files Browse the repository at this point in the history
Linkify FileSaver.js and the "W3C File API".
ensonic authored and pwnall committed Jun 4, 2019
1 parent 633feed commit c51f6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ Today, if a web site wants to create experiences involving local files (document
- Read meta data about files

## Workarounds
- [FileSaver.js] polyfills `saveAs()` from the [W3C File API], but files open in a new window instead of downloading on Safari 6.1+ and iOS.
- [FileSaver.js](https://github.com/eligrey/FileSaver.js/) polyfills `saveAs()` from the [W3C File API](https://www.w3.org/TR/FileAPI/), but files open in a new window instead of downloading on Safari 6.1+ and iOS.
- In Edge, Firefox, and Chrome developers can:
- Create a fake anchor element (`var a = document.createElement('a')`)
- Set `download` to the desired filename (`a.download = 'file.txt'`)

0 comments on commit c51f6c3

Please sign in to comment.