StorageClient
import { StorageClient } from "https://esm.sh/@supabase/storage-js@2.89.0/dist/index.d.mts";class StorageClient extends StorageBucketApi { }
constructor(
url: string,
headers?: {},
[key: string]: string;
fetch?: Fetch$1,
opts?: StorageClientOptions,
);from(id: string): StorageFileApi;
§Constructors
§
new StorageClient(url: string, headers?: {}, fetch?: Fetch$1, opts?: StorageClientOptions)
[src][key: string]: string;
Creates a client for Storage buckets, files, analytics, and vectors.
@example
import { StorageClient } from '@supabase/storage-js'
const storage = new StorageClient('https://xyzcompany.supabase.co/storage/v1', {
apikey: 'public-anon-key',
})
const avatars = storage.from('avatars')
§Properties
§
vectors: StorageVectorsClient readonly
[src]§
analytics: StorageAnalyticsClient readonly
[src]