New to Kendo UI for AngularStart a free 30-day trial

saveAs

Function

Definition

Package:@progress/kendo-file-saver

Prompts the user to save a file with a specified name and content.

The saveAs function is designed to work with Data URIs and Blobs and save them as files on the client machine. Under the hood, saveAs either creates a link that is clicked or a form that is submitted to the proxy end point if a proxy is used.

Saving a Blob with a proxy is not supported and will result in an error.

To download files from a server endpoint, use the regular HTML5 download attribute on an anchor tag to trigger the download.

Parameters:datastring | Blob

The content of the file as a Base64-encoded Data URI or a Blob.

fileNamestring

The desired file name.

options?SaveOptions

An optional proxy configuration to use during the file-saving operation.

In this article
Definition
Not finding the help you need?
Contact Support