Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

@reactor/storage — storagebucketclient

@reactor/storage


@reactor/storage / StorageBucketClient

Defined in: index.ts:47

new StorageBucketClient(ctx, bucketId): StorageBucketClient

Defined in: index.ts:48

RequestContext

string

StorageBucketClient

copy(from, to): Promise<Result<{ path: string; }>>

Defined in: index.ts:139

string

string

Promise<Result<{ path: string; }>>


createSignedUrl(path, expiresIn, options?): Promise<Result<{ signedUrl: string; }>>

Defined in: index.ts:86

string

number

SignedUrlOptions

Promise<Result<{ signedUrl: string; }>>


createSignedUrls(paths, expiresIn): Promise<Result<object[]>>

Defined in: index.ts:98

string[]

number

Promise<Result<object[]>>


download(path): Promise<Result<Blob>>

Defined in: index.ts:78

string

Promise<Result<Blob>>


getPublicUrl(path): string

Defined in: index.ts:108

string

string


list(prefix?, options?): Promise<Result<FileObject[]>>

Defined in: index.ts:112

string

ListOptions

Promise<Result<FileObject[]>>


move(from, to): Promise<Result<{ message: string; }>>

Defined in: index.ts:131

string

string

Promise<Result<{ message: string; }>>


remove(paths): Promise<Result<object[]>>

Defined in: index.ts:125

string[]

Promise<Result<object[]>>


upload(path, file, options?): Promise<Result<{ id: string; path: string; }>>

Defined in: index.ts:53

string

Blob | ArrayBuffer | File

UploadOptions

Promise<Result<{ id: string; path: string; }>>