FileService class used for communicating with firebase's storage

Hierarchy

  • FileService

Constructors

  • Creates an instance of DataService.

    Memberof

    FileService

    Parameters

    • Optional app: FirebaseApp

      instance of firebase app

    • Optional bucketName: string

    Returns FileService

Properties

appRef: FirebaseApp
storage: FirebaseStorage

Methods

  • This method used to download the file(s) from firebase storage.

    Returns

    Promise

    Parameters

    • imagePath: string

      string

    Returns Promise<string>

  • This method is used to getetadata of file(s) from firebase storage.

    Returns

    Promise

    Parameters

    • filePath: string

      string

    Returns Promise<ListResult>

  • This method is used to getetadata of file(s) from firebase storage.

    Returns

    Promise

    Parameters

    • fileName: string

      string

    Returns Promise<FullMetadata>

  • This method is used to delete file(s) from firebase storage.

    Returns

    Promise

    Parameters

    • fileName: string

      string

    Returns Promise<any>

  • This method used to upload the file(s) into firebase storage.

    Returns

    Promise

    Parameters

    • file: any

      Blob | Uint8Array | ArrayBuffer

    • Optional metadata: MetaData

      MetaData (optional)

    Returns Promise<UploadResult>

Generated using TypeDoc