TIA
Biju
John.
Thanks, I tried, it did not worked for me
I think this feature is not there in Mozilla Firefox
Following is what I tried in Firefox
location='data:application/zip;fileName=x
%2Cy.js;baseLineNumber=10,sometext';
location='data:application/zip;name="myzipfile.zip";Content-
disposition=inline%3Bfilename%3D%22myzipfile.zip%22,sometext';
location='data:application/zip;Content-disposition=inline%3Bfilename%3D
%22myzipfile.zip%22,sometext';
location='data:application/zip;Content-disposition=inline%3Bfilename
%3Dmyzipfile.zip,sometext';
location='data:application/zip;name=myzipfile.zip,sometext';
location='data:application/zip;Content-
disposition=inline;filename=myzipfile.zip,sometext';
nothing gave me "x,y.js" or "myzipfile.zip" as file name while saving
I also tried
location='data:text/javascript;fileName=x
%2Cy.js;baseLineNumber=10,sometext';
and the "File > Save File As" still not getting "x,y.js" as file name
Please see http://www.google.com/search?q=data+uri+rfc the first hit.
If it doesn't mention filenames, then you can't.
-Boris
Well RFC2397 won't mention filenames, but the program interpreting the
mediatype in the 2397 dataurl might support a filename parameter.
Or as biju already discovered, they might not.
John.
If the mediatype in question defines one, yes. I doubt that many do.
-Boris
ie, http://www.ietf.org/rfc/rfc2397.txt it dont have letter sequence
"file" or "name"
at https://bugzilla.mozilla.org/show_bug.cgi?id=371432#c6
I saw...
(and we can attach disposition bits like filename just fine within the
spec)
So just wondered if there is a way to avoid a server round trip.
Thanks all for the advice...