Legacy devices (no a) support can only download a few hundred kilobytes of data, and can't give the file a custom name.Devices without Blob support won't be able to download Blobs or TypedArrays.Android support starts at 4.2 for the built-in browser, though chrome 36+ and firefox 20+ on android 2.3+ work well.Devices without file systems like iPhone, iPad, Wii, et al.You can expect it to work for the vast majority of your users, with some common-sense limits: Included via AMD require(, function(download) Äownload.js works with a wide range of devices and browsers. Require("downloadjs")(data, strFileName, strMimeType) Simple global download function via include download(data, strFileName, strMimeType) No matter the input format, download() saves a file using the specified file name and mime information in the same manner as a server using a Content-Disposition HTTP header. The input can be a URL, String, Blob, or Typed Array of data, or via a dataURL representing the file's data as base64 or url-encoded string. It specifies the contents and name of a new file placed in the browser's download directory. The download() function is used to trigger a file download from JavaScript.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |