Interface: StorageSource
Properties​
getDownloadURL​
• getDownloadURL: (pathOrUrl
: string
) => Promise
<DownloadConfig
>
Type declaration​
â–¸ (pathOrUrl
): Promise
<DownloadConfig
>
Convert a storage path or URL into a download configuration
Parameters​
Name | Type |
---|---|
pathOrUrl | string |
Returns​
Promise
<DownloadConfig
>
Defined in​
packages/firecms/src/types/storage.ts:86
getFile​
• getFile: (path
: string
) => Promise
<null
| File
>
Type declaration​
â–¸ (path
): Promise
<null
| File
>
Get a file from a storage path. It returns null if the file does not exist.
Parameters​
Name | Type |
---|---|
path | string |
Returns​
Promise
<null
| File
>
Defined in​
packages/firecms/src/types/storage.ts:93
uploadFile​
• uploadFile: (__namedParameters
: UploadFileProps
) => Promise
<UploadFileResult
>
Type declaration​
▸ («destructured»
): Promise
<UploadFileResult
>
Upload a file, specifying a name and a path
Parameters​
Name | Type |
---|---|
«destructured» | UploadFileProps |
Returns​
Promise
<UploadFileResult
>