Skip to main content
js

Downloading Files

Downloading file content and accessing files.

Fetching File Contents

Download file content to display it without storing locally. Also useful for immediate data processing without saving.

Fetching the most recent files' content in given Store. The content is returned as Uint8Array:

const fileContent = await Endpoint.connection().stores.getFileContents('FILE_ID');

Downloading Files

Save the file to open it with a local application or store it on your device.

You can download files directly to browser environment:

const fileContent = await Endpoint.connection().stores.getFileContents('FILE_ID');