import { StorageFileApi } from "https://deno.land/x/storagee@1.3.0/src/lib/StorageFileApi.ts";
Methods
private
uploadOrUpdate(method: "POST" | "PUT",
path: string,
fileOptions?: FileOptions,
Uploads a file to an existing bucket. or replaces an existing file at the specified path with a new one.
_getFinalPath(path: string)
createSignedUrl(path: string, expiresIn: number): Promise<{ data: { signedURL: string; } | null; error: Error | null; signedURL: string | null; }>
Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds.
getPublicUrl(path: string): { data: { publicURL: string; } | null; error: Error | null; publicURL: string | null; }
Retrieve URLs for assets in public buckets
list(): Promise<{ data: FileObject[] | null; error: Error | null; }>
Lists all the files within a bucket.
move(fromPath: string, toPath: string): Promise<{ data: { message: string; } | null; error: Error | null; }>
Moves an existing file, optionally renaming it at the same time.
remove(paths: string[]): Promise<{ data: FileObject[] | null; error: Error | null; }>
Deletes files within the same bucket
update(): Promise<{ data: { Key: string; } | null; error: Error | null; }>
path: string,
fileOptions?: FileOptions,
Replaces an existing file at the specified path with a new one.