Skip to content

Commit f8a925a

Browse files
committed
The data: uri specification makes no leeway for file names or download
content types. Making this explicit in the documentation. closes #1 closes #2
1 parent aac0f7c commit f8a925a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@ support the `data:` uri.
5050
$('#elem').download(failCallback);
5151
```
5252

53+
### Limitations
54+
55+
It is not possible to specify a name for the downloaded file. If at
56+
some point arbitrary headers are added to the `data:` uri spec, this
57+
would be possible using `Content-Disposition` with `filename`.
58+
59+
There was some [discussion][] about this on the W3.org, but it has not
60+
led to any change in the spec.
61+
62+
[discussion]: http://lists.w3.org/Archives/Public/uri/2010Feb/0058.html
63+
64+
Any browsers with limited `data:` uri support will not work, either.
65+
The failCallback is your friend.
66+
5367
### Links
5468

5569
Fork it from

0 commit comments

Comments
 (0)