Skip to main content
Version: 2.0.0

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 path
  • getDownloadURL: Convert a storage path into a download url

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!