strapi-supabase-file-upload
Version:
Supabase upload provider for Strapi v5
25 lines • 614 B
TypeScript
import type { Stream } from 'node:stream';
export interface SupabaseProviderOptions {
apiUrl: string;
apiKey: string;
bucket: string;
directory?: string;
}
export interface StrapiFile {
hash: string;
ext: string;
buffer?: Buffer;
stream?: Stream;
mime: string;
url: string;
name?: string;
}
export interface StrapiFileForDelete {
url: string;
}
export interface UploadProvider {
upload(file: StrapiFile): Promise<void>;
uploadStream(file: StrapiFile): Promise<void>;
delete(file: StrapiFileForDelete): Promise<void>;
}
//# sourceMappingURL=types.d.ts.map