mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-14 17:49:00 +08:00
616 B
616 B
id, title, sidebar_label
| id | title | sidebar_label |
|---|---|---|
| use_storage_source | useStorageSource | useStorageSource |
Use this hook to get the storage source being used.
Each file uploaded in FireCMS is referenced by a string in the form
${path}/{$fileName}, which is then referenced in the datasource, as a string
value in properties that have a storage configuration.
You can use this controller to upload files and get the storage path where it was stored. Then you can convert that storagePath into a download URL
uploadFile: Upload a file, specifying a name and a pathgetDownloadURL: Convert a storage path into a download url