Skip to main content

StorageSource

Index

Properties

getDownloadURL

getDownloadURL: (pathOrUrl: string, bucket?: string) => Promise<DownloadConfig>

Convert a storage path or URL into a download configuration


Type declaration

    • Parameters

      • pathOrUrl: string
      • optionalbucket: string

      Returns Promise<DownloadConfig>

getFile

getFile: (path: string, bucket?: string) => Promise<null | File>

Get a file from a storage path. It returns null if the file does not exist.


Type declaration

    • (path: string, bucket?: string): Promise<null | File>
    • Parameters

      • path: string
      • optionalbucket: string

      Returns Promise<null | File>

uploadFile

uploadFile: (__namedParameters: UploadFileProps) => Promise<UploadFileResult>

Upload a file, specifying a name and a path


Type declaration

Sign up to our newsletter to get the latest news and updates. No spam!