My Edge extension creates PDF files. What's is the best approach to provide a download capability for these files in my extension? I tried:
- window.navigator.msSaveOrOpenBlob()
- create link dynamically and assign data URI to the HREF field
- this approach: http://html5-demos.appspot.com/static/a.download.html
None of these ways seem to work. The "Downloads" API is not available at the moment. Using the Flash script to download the file is not the best solution (it requires Flash to be enabled).
Ideal scenario is: user clicks a "Download" button, and a "Save as" dialog appears. So how do I do that in my Edge extension?