Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
When letting a user download a file, you can put a "filename=" in the content-disposition field to suggest to the client what to save it as.
It looks like this field is somewhere between "not fully specified" and "not consistently implemented", especially for non-ASCII encodings.
I think RFC-6266 says that something like this should work:
But there are also apparently lots of other RFCs to choose from, and the various browser vendors appropriately picked their favorites. I tried the above with Firefox and Safari just now, and they each did something different, and neither gave me a file called
It would be great if caniuse had something for the content-disposition filename= feature!