namespace sap.ui.core.util.File

Control sample: sap.ui.core.util.File
Visiblity: public
Available since: N/A
Module: sap/ui/core/util/File
Application Component: CA-UI5-TBL

Utility class to handle files.


Nodes Overview

Node Description

Methods Overview

Method Description
sap.ui.core.util.File.save

Triggers a download / save action of the given file.

sap.ui.core.util.File.save

Triggers a download / save action of the given file.

Param Type DefaultValue Description
sData string

file content

sFileName string

file name

sFileExtension string

file extension

sMimeType string

file mime-type

sCharset string

file charset

bByteOrderMark boolean

Whether to prepend a unicode byte order mark (only applies for utf-8 charset). Default is false except when sFileExtension === 'csv' and sCharset === 'utf-8' it is true (compatibility reasons).