@3akram/strapi-provider-upload-google-cloud-storage
Version:
Google Cloud Storage provider for Strapi v5 upload
28 lines (27 loc) • 638 B
TypeScript
export interface ProviderOptions {
bucketName: string;
publicFiles?: boolean;
uniform?: boolean;
basePath?: string;
logLevel?: 'debug' | 'info' | 'error' | 'none';
baseUrl?: string;
}
export interface File {
name: string;
alternativeText?: string;
caption?: string;
width?: number;
height?: number;
formats?: Record<string, any>;
hash: string;
ext?: string;
mime: string;
size: number;
url: string;
previewUrl?: string;
path?: string;
provider?: string;
provider_metadata?: Record<string, any>;
stream?: NodeJS.ReadableStream;
buffer?: Buffer;
}