Skip to content

This repository contains the ASP.NET Core firebase real time database based file system providers for the essential JS 2 file manager component.

Notifications You must be signed in to change notification settings

SyncfusionExamples/firebase-realtime-database-aspcore-file-provider

Repository files navigation

firebase-realtime-database-aspcore-file-provider

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.

Key Features

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:
  • Maximum file size: 30MB
  • Accepted Media MIME types: */*
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.

Prerequisites

  • 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)

How to run the project

  • 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.

File Manager AjaxSettings

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'
  }

File download AjaxSettings

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'
  }

File upload AjaxSettings

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'
  }

File image preview AjaxSettings

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.

File Manager

Support

Product support is available for through following mediums.

License

Check the license detail here.

Changelog

Check the changelog here

© Copyright 2023 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.

About

This repository contains the ASP.NET Core firebase real time database based file system providers for the essential JS 2 file manager component.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages