Skip to main content

Interface: FileDownloadOptions

Defined in: src/stores/sites/utils/fileDownload.ts:17

Options for downloading a file in the browser.

Remarksโ€‹

Used to specify the file buffer, filename, and optional MIME type for download operations.

Propertiesโ€‹

bufferโ€‹

buffer: ArrayBuffer

Defined in: src/stores/sites/utils/fileDownload.ts:19

The file buffer to download


fileNameโ€‹

fileName: string

Defined in: src/stores/sites/utils/fileDownload.ts:21

The filename for the download


mimeType?โ€‹

optional mimeType: string

Defined in: src/stores/sites/utils/fileDownload.ts:23

The MIME type of the file