Method download documentation
Downloads a file with given filename from a URL.
// Forcing the download of an image
// Forcing the download of a PDF
// Changing the name as it is downloaded
bbn.fn.download('/files/f4b1092d71aefd96458feaa71d170f69.pdf', 'myDocument_' + bbn.fn.dateSQL() + '.pdf');
Downloads a file with given filename from a URL. - Gets the file's content as Blob through XHR, then sends it to bbn.fn.downloadContent.
__Attention__ The CORS policy applies
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way