utils_file

This file provides utilities for handling files in an environment-independent way, including functions to save files and wrappers around the FileReader API to integrate with Leaflet's event system.

See:

Methods

private, inner saveAs(data, filenameopt, dataTypeopt)

Saves data as a file with a specified filename and data type.

Parameters:
Name Type Attributes Description
data string | Blob | BlobPart | Array.<BlobPart>

The data to be saved.

filename string <optional>

The name of the file to save.

dataType string <optional>

The MIME type of the file, used to specify the file format.