Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

The data: uri specification makes no leeway for file names or download

content types.  Making this explicit in the documentation.

closes #1
closes #2
  • Loading branch information...
commit f8a925aec1618b584d658e7e7e067b5b1c575565 1 parent aac0f7c
@talos authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 README.md
View
14 README.md
@@ -50,6 +50,20 @@ support the `data:` uri.
$('#elem').download(failCallback);
```
+### Limitations
+
+It is not possible to specify a name for the downloaded file. If at
+some point arbitrary headers are added to the `data:` uri spec, this
+would be possible using `Content-Disposition` with `filename`.
+
+There was some [discussion][] about this on the W3.org, but it has not
+led to any change in the spec.
+
+ [discussion]: http://lists.w3.org/Archives/Public/uri/2010Feb/0058.html
+
+Any browsers with limited `data:` uri support will not work, either.
+The failCallback is your friend.
+
### Links
Fork it from
Please sign in to comment.
Something went wrong with that request. Please try again.