Constructors
constructor
- new FileService(app?: FirebaseApp, bucketName?: string): FileService
-
Parameters
-
Optional
app: FirebaseApp
-
Optional
bucketName: string
Properties
appRef
appRef: FirebaseApp
storage
storage: FirebaseStorage
Methods
download
- download(imagePath: string): Promise<string>
-
Returns Promise<string>
getList
- getList(filePath: string): Promise<ListResult>
-
Returns Promise<ListResult>
getMetaData
- getMetaData(fileName: string): Promise<FullMetadata>
-
Returns Promise<FullMetadata>
remove
- remove(fileName: string): Promise<any>
-
Returns Promise<any>
upload
- upload(file: any, metadata?: MetaData): Promise<UploadResult>
-
Returns Promise<UploadResult>
FileService class used for communicating with firebase's storage