Method download documentation
Downloads a file with given filename from a URL.
Example
```javascript
// Forcing the download of an image
bbn.fn.download('/bbn/js-title-black.png');
// Forcing the download of a PDF
bbn.fn.download('/files/my-document.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
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions