When I wanted to generate a zip file as the output from an export operation, I discovered that I couldn’t use the built-in DownloadSaver – but I could tweak its code just a little bit to make it work.
The major problem is that the MIME type “text/html” is hard-coded. I changed that in my variant to look at the downloaded filename’s extension (and falling back to “text/html”).
In my variant, I detect the .zip extension and use the MIME type “application/zip;base64”, which is what the JSZip plugin uses.
I think that you quite easily could get rid of “tm-zip-download” and use “tm-download-file”, if the download saver was a little bit more flexible and smart.
What do you think?