I’ve been neglecting jquery.fileDownload.js a little bit while working on my Durandal.js and FluentKnockoutHelpers demo but since that’s mostly wrapped up I have merged some pulls and added promise support to jQuery File Download. Promises make using the plugin a whole lot cleaner. If you haven’t used them yet start to they are awesome! Enjoy!
As usual the source can be obtained here:
https://github.com/johnculviner/jquery.fileDownload
A short example of what you can now do:
$.fileDownload('some/file/url') .done(function () { alert('File download a success!'); }) .fail(function () { alert('File download failed!'); });