@@ -8,7 +8,7 @@ FileSaver.js
88
99FileSaver.js is the solution to saving files on the client-side, and is perfect for
1010web apps that generates files on the client, However if the file is coming from the
11- server we recommend you to first try to use [ Content-Disposition] [ 8 ] attachment response header as it has more cross-browser compatible
11+ server we recommend you to first try to use [ Content-Disposition] [ 8 ] attachment response header as it has more cross-browser compatiblity.
1212
1313Looking for ` canvas.toBlob() ` for saving canvases? Check out
1414[ canvas-toBlob.js] [ 2 ] for a cross-browser implementation.
@@ -87,10 +87,10 @@ FileSaver.saveAs(blob, "hello world.txt");
8787``` js
8888FileSaver .saveAs (" https://httpbin.org/image" , " image.jpg" );
8989```
90- Using URLs within the same origin will just use ` a[download] `
91- Otherwise, it will first check if it supports cors header with a synchronously head request
92- if it does it will download the data and save it using blob URLs
93- if not it will try to download it using ` a[download] `
90+ Using URLs within the same origin will just use ` a[download] ` .
91+ Otherwise, it will first check if it supports cors header with a synchronous head request.
92+ If it does, it will download the data and save using blob URLs.
93+ If not, it will try to download it using ` a[download] ` .
9494
9595The standard W3C File API [ ` Blob ` ] [ 4 ] interface is not available in all browsers.
9696[ Blob.js] [ 5 ] is a cross-browser ` Blob ` implementation that solves this.
@@ -108,10 +108,10 @@ Note: The standard HTML5 `canvas.toBlob()` method is not available in all browse
108108
109109### Saving File
110110
111- You can save a File constructor without specifying a filename. The
112- File itself already contains a name, There is a hand full of ways to get a file
113- instance (from storage, file input, new constructor, clipboard event)
114- But if you still want to change the name, then you can change it in the 2nd argument
111+ You can save a File constructor without specifying a filename. If the
112+ file itself already contains a name, there is a hand full of ways to get a file
113+ instance (from storage, file input, new constructor, clipboard event).
114+ If you still want to change the name, then you can change it in the 2nd argument.
115115
116116``` js
117117// Note: Ie and Edge don't support the new File constructor,
0 commit comments