All Components

saveAs

Prompts the user to save the Base64-encoded data as a file with a specified name.

import { saveAs, encodeBase64 } from '@progress/kendo-file-saver';

const dataURI = "data:text/plain;base64," + encodeBase64("Hello World!");
saveAs(dataURI, 'test.txt');

Parameters

data string

The content of the file which is encoded as a Data URI. Supports only Base64-encoded Data URIs.

fileName string

The desired file name.

options? SaveOptions

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

In this article