My javascript has constructed the contents of an ics (Apple Calendar app) file.
The user should be able to download this file, via a button and maybe a save dialog. I can't use a URI, because the file is too big so I get an error 414. I'd like the downloaded file to automatically have a .ics extension if possible. How can I accomplish this?