Aurabase Logo
aurabasedocs
docs›JavaScript SDK reference›Storage reference

JavaScript SDK: storage reference

Every method that manages buckets and objects, with its signature.

6 min read·Level reference·Revised on Oct 12, 2026
This English text was generated automatically from the French original and has not been reviewed yet.
#
Class

StorageService

MethodDescription
from(bucketId: string): StorageBucketClientReturns a client scoped to a specific bucket (DX parity Supabase).
listBuckets(): Promise<AuraResponse<StorageBucket[]>>List the project buckets.
getBucket(id: string): Promise<AuraResponse<StorageBucket>>Reads a bucket by its identifier.
createBucket(name: string, options?: { public?: boolean; fileSizeLimit?: number; allowedMimeTypes?: string[]; }): Promise<AuraResponse<StorageBucket>>Create a bucket. public (default false) makes its objects readable without authentication; fileSizeLimit (in bytes) and allowedMimeTypes limit the accepted files.
updateBucket(id: string, options?: { public?: boolean; fileSizeLimit?: number; allowedMimeTypes?: string[]; }): Promise<AuraResponse<StorageBucket>>Updates an existing bucket (PARTIAL update: only the provided fields are sent).
deleteBucket(id: string): Promise<AuraResponse<null>>Deletes a bucket by its identifier.
upload(bucketId: string, path: string, file: Blob | File | ArrayBuffer, options?: { contentType?: string; upsert?: boolean; metadata?: Record<string, string>; }): Promise<AuraResponse<UploadResult>>Upload a file to a bucket.
download(bucketId: string, path: string, options?: { transform?: ImageTransform; }): BlobDownloadBuilderLazy download of a file.
list(bucketId: string, options?: { prefix?: string; limit?: number; offset?: number; cursor?: string; }): Promise<AuraResponse<FileEntry[]>>List files in a bucket.
remove(bucketId: string, paths: string[], options?: { permanent?: boolean; }): Promise<AuraResponse<null>>Delete one or more files from a bucket.
copy(bucketId: string, fromPath: string, toPath: string): Promise<AuraResponse<{ key: string; }>>Copy a file within a bucket.
move(bucketId: string, fromPath: string, toPath: string): Promise<AuraResponse<{ key: string; }>>Move/rename a file within a bucket.
getMetadata(bucketId: string, path: string): Promise<AuraResponse<ObjectMeta>>Get file metadata.
createSignedUrl(bucketId: string, path: string, expiresInSeconds?: number, options?: { transform?: ImageTransform; }): Promise<AuraResponse<{ url: string; expires_in: number; }>>Generate a signed (temporary) download URL.
createSignedUrls(bucketId: string, paths: string[], expiresInSeconds?: number, options?: { transform?: ImageTransform; }): Promise<AuraResponse<Array<{ path: string; url: string; expires_in: number; } | { path: string; error: AuraError; }>>>Generates several signed URLs in one pass (batch).
createSignedUploadUrl(bucketId: string, path: string, expiresInSeconds?: number, options?: { upsert?: boolean; }): Promise<AuraResponse<{ url: string; expires_in: number; }>>Generate a signed upload URL (presigned PUT).
getPublicUrl(bucketId: string, path: string, options?: { transform?: ImageTransform; }): stringConstructs a URL to a file in a bucket.
#
Class

StorageBucketClient

Access client scoped to a specific bucket (DX parity Supabase).

PropertyDescription
readonly bucketId: stringIdentifier of the bucket to which this client is linked: all its methods act on this bucket.
MethodDescription
upload(path: string, file: Blob | File | ArrayBuffer, options?: { contentType?: string; upsert?: boolean; metadata?: Record<string, string>; }): Promise<AuraResponse<UploadResult>>Upload a file to this bucket.
download(path: string, options?: { transform?: ImageTransform; }): BlobDownloadBuilderDownload a file from this bucket.
list(options?: { prefix?: string; limit?: number; offset?: number; cursor?: string; }): Promise<AuraResponse<FileEntry[]>>List the files in this bucket.
remove(paths: string[], options?: { permanent?: boolean; }): Promise<AuraResponse<null>>Deletes one or more files from this bucket.
createSignedUrl(path: string, expiresInSeconds?: number, options?: { transform?: ImageTransform; }): Promise<AuraResponse<{ url: string; expires_in: number; }>>Creates a temporary signed URL for a file in this bucket.
createSignedUrls(paths: string[], expiresInSeconds?: number, options?: { transform?: ImageTransform; }): Promise<AuraResponse<Array<{ path: string; url: string; expires_in: number; } | { path: string; error: AuraError; }>>>Creates multiple signed URLs in one pass for this bucket.
createSignedUploadUrl(path: string, expiresInSeconds?: number, options?: { upsert?: boolean; }): Promise<AuraResponse<{ url: string; expires_in: number; }>>Creates a presigned upload URL (direct PUT).
getPublicUrl(path: string, options?: { transform?: ImageTransform; }): { data: { publicUrl: string; }; }Returns the public URL of a file in this bucket.
#
Class

BlobDownloadBuilder

Lazy download (Blob by default).

MethodDescription
asStream(): StreamDownloadBuilderSwitches to streaming reading: the result becomes a ReadableStream instead of a Blob loaded into memory.
then<TR1 = AuraResponse<Blob>, TR2 = never>(onfulfilled?: ((v: AuraResponse<Blob>) => TR1 | PromiseLike<TR1>) | null, onrejected?: ((e: unknown) => TR2 | PromiseLike<TR2>) | null): Promise<TR1 | TR2>Triggers the download (lazy: the request only starts at await); the result is memorized.
#
Class

StreamDownloadBuilder

Variante flux — res.body (ReadableStream).

MethodDescription
then<TR1 = AuraResponse<ReadableStream<Uint8Array>>, TR2 = never>(onfulfilled?: ((v: AuraResponse<ReadableStream<Uint8Array>>) => TR1 | PromiseLike<TR1>) | null, onrejected?: ((e: unknown) => TR2 | PromiseLike<TR2>) | null): Promise<TR1 | TR2>Triggers streaming (lazy) download; the result is memorized.
Generated page

This page is generated from the type declarations and comments of the SDK, so it cannot drift from the published code. For worked examples, read the guides.

Last updated · Oct 12, 2026