Skip to content

StorageSource

@firecms/core


@firecms/core / StorageSource

Defined in: types/storage.ts:74

deleteFile: (path, bucket?) => Promise<void>

Defined in: types/storage.ts:111

Delete a file.

string

string

Promise<void>


getDownloadURL: (pathOrUrl, bucket?) => Promise<DownloadConfig>

Defined in: types/storage.ts:96

Convert a storage path or URL into a download configuration

string

string

Promise<DownloadConfig>


getFile: (path, bucket?) => Promise<File | null>

Defined in: types/storage.ts:104

Get a file from a storage path. It returns null if the file does not exist.

string

string

Promise<File | null>


list: (path, options?) => Promise<StorageListResult>

Defined in: types/storage.ts:118

List the contents of a path.

string

string

number

string

Promise<StorageListResult>


uploadFile: (file) => Promise<UploadFileResult>

Defined in: types/storage.ts:83

Upload a file, specifying a name and a path

UploadFileProps

Promise<UploadFileResult>