This repository contains the ASP.NET Core firebase real time database based file system providers for the Syncfusion file manager component.
To know more about firebase real time database file system provider for File Manager, please refer our documentation here.
The following actions can be performed with firebase real time database based file system provider.
Actions | Description |
---|---|
Read | Read the files from firebase real time database. |
Details | Provides details about files Type, Size, Location and Modified date. |
Download | Download the selected file or folder from the firebase real time database. |
Upload | Uploads a files to Firebase realtime database. It accepts uploaded media with the following characteristics:
|
Create | Create a new folder. |
Delete | Remove a file from firebase real time database. |
Copy | Copy the selected Files from target. |
Move | Paste the copied files to the desired location. |
Rename | Rename a folder or file. |
Search | Search a file or folder in firebase real time database. |
- Visual Studio 2022
To run the service, we need to create a Firebase project to access firebase realtime database. Register the realtime database details like firebase realtime database service link, root node and service account key path in the RegisterFirebaseRealtimeDB method of FilebaseFileProvider in the controller part of the ASP.NET Core application.
RegisterFirebaseRealtimeDB(string apiUrl, string rootNode, string serviceAccountKeyPath)
- Checkout this project to a location in your disk.
- Open the solution file using Visual Studio 2022.
- Restore the NuGet packages by rebuilding the solution.
- Run the project.
To access the basic actions such as Read, Delete, Copy, Move, Rename, Search, and Get Details of File Manager using Firebase realtime database file system service, just map the following code snippet in the Ajaxsettings property of File Manager.
Here, the hostUrl
will be your locally hosted port number.
var hostUrl = http://localhost:62870/;
ajaxSettings: {
url: hostUrl + 'api/FirebaseProvider/FirebaseRealtimeFileOperations'
}
To perform download operation, initialize the downloadUrl
property in ajaxSettings of the File Manager component.
var hostUrl = http://localhost:62870/;
ajaxSettings: {
url: hostUrl + 'api/FirebaseProvider/FirebaseRealtimeFileOperations',
downloadUrl: hostUrl +'api/FirebaseProvider/FirebaseRealtimeDownload'
}
To perform upload operation, initialize the uploadUrl
property in ajaxSettings of the File Manager component.
var hostUrl = http://localhost:62870/;
ajaxSettings: {
url: hostUrl + 'api/FirebaseProvider/FirebaseRealtimeFileOperations',
uploadUrl: hostUrl +'api/FirebaseProvider/FirebaseRealtimeUpload'
}
To perform image preview support in the File Manager component, initialize the getImageUrl
property in ajaxSettings of the File Manager component.
var hostUrl = http://localhost:62870/;
ajaxSettings: {
url: hostUrl + 'api/FirebaseProvider/FirebaseRealtimeFileOperations',
getImageUrl: hostUrl +'api/FirebaseProvider/FirebaseRealtimeGetImage'
}
The FileManager will be rendered as the following.
Product support is available for through following mediums.
- Creating incident in Syncfusion Direct-trac support system or Community forum.
- New GitHub issue.
- Ask your query in Stack Overflow with tag
syncfusion
andej2
.
Check the license detail here.
Check the changelog here
© Copyright 2023 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.