Merge pull request #37 from missing/master
Updated README with supported browser table, to try to further clarify the dependancies and filename support
This commit is contained in:
@@ -5,38 +5,26 @@ FileSaver.js implements the W3C `saveAs()` [FileSaver][1] interface in browsers
|
|||||||
not natively support it. There is a [FileSaver.js demo][2] that demonstrates saving
|
not natively support it. There is a [FileSaver.js demo][2] that demonstrates saving
|
||||||
various media types.
|
various media types.
|
||||||
|
|
||||||
FileSaver.js is the solution to saving files on the client side, and is perfect for
|
FileSaver.js is the solution to saving files on the client-side, and is perfect for
|
||||||
webapps that need to generate files or for saving sensitive information that shouldn't be
|
webapps that need to generate files, or for saving sensitive information that shouldn't be
|
||||||
sent to an external server.
|
sent to an external server.
|
||||||
|
|
||||||
|
|
||||||
Supported Browsers
|
Supported Browsers
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
* Internet Explorer 10+
|
| Browser | Constructs as | Filenames | Size | Dependancies |
|
||||||
* Up to 600 MiB per blob
|
| -------------- | ------------- | ------------ | ---------- | ------------ |
|
||||||
* **Supports filenames**
|
| Firefox 20+ | Blob | Yes | 800MiB/per | None |
|
||||||
* Firefox
|
| Firefox ≤ 19 | Blob | NO | | [Blob.js](https://github.com/eligrey/Blob.js) |
|
||||||
* Up to 800 MiB per blob
|
| Chrome | Blob | Yes | 345MiB/per | None |
|
||||||
* **Supports filenames**
|
| Chrome for Android v28+ | Blob | Yes | | None |
|
||||||
* Google Chrome
|
| IE 10+ | Blob | Yes | 600MiB/per | None |
|
||||||
* Up to 345 MiB per blob
|
| Opera Next | Blob | Yes | | None |
|
||||||
* **Supports filenames**
|
| Opera < 15 | datURL | NO | | [Blob.js](https://github.com/eligrey/Blob.js) |
|
||||||
* Google Chrome for Android Beta
|
| Safari ≤ 6 | dataURL | NO | | [Blob.js](https://github.com/eligrey/Blob.js) |
|
||||||
* **Supports filenames**
|
|
||||||
* Opera Next
|
|
||||||
* **Supports filenames**
|
|
||||||
* Safari 5+
|
|
||||||
* Requires [Blob.js](https://github.com/eligrey/Blob.js)
|
|
||||||
* Does not support filenames
|
|
||||||
* Opera ≤15
|
|
||||||
* Requires [Blob.js](https://github.com/eligrey/Blob.js)
|
|
||||||
* Does not support filenames
|
|
||||||
* Firefox <4
|
|
||||||
* Requires [Blob.js](https://github.com/eligrey/Blob.js)
|
|
||||||
* Does not support filenames
|
|
||||||
|
|
||||||
Unlisted future versions of browsers will probably work too; I just haven't
|
Note: Unlisted versions or browsers will probably work too; however only the ones listed above have been tested.
|
||||||
tested them.
|
|
||||||
|
|
||||||
Feature detection is possible:
|
Feature detection is possible:
|
||||||
|
|
||||||
@@ -67,8 +55,7 @@ The standard W3C File API [`Blob`][3] interface is not available in all browsers
|
|||||||
});
|
});
|
||||||
|
|
||||||
Note: The standard HTML5 `canvas.toBlob()` method is not available in all browsers.
|
Note: The standard HTML5 `canvas.toBlob()` method is not available in all browsers.
|
||||||
[canvas-toBlob.js][5] is a cross-browser `canvas.toBlob()` implementation that solves
|
[canvas-toBlob.js][5] is a cross-browser `canvas.toBlob()` that polyfills this.
|
||||||
this.
|
|
||||||
|
|
||||||
### Aborting a save
|
### Aborting a save
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user