Skip to main content

Interface: StorageMeta

Additional configuration related to Storage related fields

Properties

acceptedFiles

โ€ข Optional acceptedFiles: string[]

File MIME types that can be uploaded to this reference

Defined in

models/properties.ts:614


mediaType

โ€ข Optional mediaType: MediaType

Media type of this reference, used for displaying the preview

Defined in

models/properties.ts:604


metadata

โ€ข Optional metadata: any

Specific metadata set in your uploaded file. For the default Firebase implementation, the values passed here are of type firebase.storage.UploadMetadata

Defined in

models/properties.ts:621


storagePath

โ€ข storagePath: string | (context: UploadedFileContext) => string

Absolute path in your bucket. You can specify it directly or use a callback

Defined in

models/properties.ts:609


storeUrl

โ€ข Optional storeUrl: boolean

When set to true, this flag indicates that the download URL of the file will be saved in the datasource instead of the Cloud storage path. Note that the generated URL may use a token that, if disabled, may make the URL unusable and lose the original reference to Cloud Storage, so it is not encouraged to use this flag. Defaults to false

Defined in

models/properties.ts:636

Methods

fileName

โ–ธ Optional fileName(context): string

You can use this callback to customize the uploaded filename

Parameters

NameType
contextUploadedFileContext

Returns

string

Defined in

models/properties.ts:627


postProcess

โ–ธ Optional postProcess(pathOrUrl): Promise<string>

Post process the path

Parameters

NameType
pathOrUrlstring

Returns

Promise<string>

Defined in

models/properties.ts:641