We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Request for file manager gRPC support

Hi Support Team,

We would like to integrate FileManager with gRPC call, but we can't able to find the documents for that.

following file system only supported, can you please help me on this.

https://ej2.syncfusion.com/documentation/file-manager/file-system-provider/.


if gRPC is not there, can you help me to handle file mange component alone or custom file provider options


3 Replies

LD LeoLavanya Dhanaraj Syncfusion Team April 6, 2023 08:54 AM UTC

Hi Alex,


Greetings from Syncfusion support.


Currently, we have not provided gRPC support to connect with the FileManager component. However, you can refer our available File Service Providers to write your own service provider. But you need to return the response from server in a specified format with required parameters to perform file operations. 


In File Manager component, we have handled file operations by fetching response from server. Please find the default response format for file operations from the below link.


https://ej2.syncfusion.com/react/documentation/file-manager/file-operations/


You can find the response parameters for some of the basic operation from below table.


S.No

File Operation

Example Response Parameters

  1.  

Read

{

    cwd:

    {

        name:"Download",

        size:0,

        dateModified:"2019-02-28T03:48:19.8319708+00:00",

        dateCreated:"2019-02-27T17:36:15.812193+00:00",

        hasChild:false,

        isFile:false,

        type:"",

        filterPath:\\Download\\

    },

    files:[

        {

            name:"Sample Work Sheet.xlsx",

            size:6172,

            dateModified:"2019-02-27T17:23:50.9651206+00:00",

            dateCreated:"2019-02-27T17:36:15.8151955+00:00",

            hasChild:false,

            isFile:true,

            type:".xlsx",

            filterPath:\\Download\\

        }

    ],

    error:null,

    details:null

}

  1.  

Upload

The upload response is an empty string.

  1.  

Download

Downloads the requested items from the file server in response.

  1.  

GetImage

Return the image as a file stream in response.

  1.  

Create

{

    cwd: null,

    files: [

        {

            dateCreated: "2019-03-15T10:25:05.3596171+00:00",

            dateModified: "2019-03-15T10:25:05.3596171+00:00",

            filterPath: null,

            hasChild: false,

            isFile: false,

            name: "New",

            size: 0,

            type: ""

        }

    ],

    details: null,

    error: null

}

  1.  

Rename

{

    cwd:null,

    files:[

        {

            name:"seaview.jpg",

            size:95866,

            dateModified:"2019-03-20T08:45:56+00:00",

            dateCreated:"2019-03-20T05:22:34.6214847+00:00",

            hasChild:false,

            isFile:true,

            type:".jpg",

            filterPath:\\Pictures\\Nature\\seaview.jpg

        }

    ],

    error:null,

    details:null

}

  1.  

Move

{

    cwd:null,

    files:[

        {

            path:null,

            action:null,

            newName:null,

            names:null,

            name:"justin biber.mp4",

            size:0,

            previousName:"justin biber.mp4",

            dateModified:"2019-06-21T06:58:32+00:00",

            dateCreated:"2019-06-24T04:26:49.2690476+00:00",

            hasChild:false,

            isFile:true,

            type:".mp4",

            id:null,

            filterPath:\\Videos\\

        }

    ],

    error:null,

    details:null

}

  1.  

Copy

{

    cwd:null,

    files:[

        {

            path:null,

            action:null,

            newName:null,

            names:null,

            name:"justin.mp4",

            size:0,

            previousName:"album.mp4",

            dateModified:"2019-06-21T06:58:32+00:00",

            dateCreated:"2019-06-24T04:22:14.6245618+00:00",

            hasChild:false,

            isFile:true,

            type:".mp4",

            id:null,

            filterPath:"\\"

        }

    ],

    error:null,

    details:null

}

  1.  

Delete

{

    cwd: null,

    details: null,

    error: null,

    files: [

        {

            dateCreated: "2019-03-15T10:13:30.346309+00:00",

            dateModified: "2019-03-15T10:13:30.346309+00:00",

            filterPath: "\Hello\folder",

            hasChild: true,

            isFile: false,

            name: "folder",

            size: 0,

            type: ""

        }

    ]

}

  1.  

Details

{

    cwd:null,

    files:null,

    error:null,

    details:

    {

        name:"All Files",

        location:\\Files\\FileContents\\All Files,

        isFile:false,

        size:"679.8 KB",

        created:"3/8/2019 10:18:37 AM",

        modified:"3/8/2019 10:18:39 AM",

        multipleFiles:false

    }

}


Please check the shared details and get back to us if you need any further assistance.


Regards,

Leo Lavanya Dhanaraj



AA Alex Appadurai replied to LeoLavanya Dhanaraj April 6, 2023 02:22 PM UTC

Hi Lavanya,

Can you please provide the own service provider. looks what ever already defined by  

syncfusion only able to use. gRPC is completely diff from ajax call. Can we use without ajaxSettings?



IL Indhumathy Loganathan Syncfusion Team April 7, 2023 01:26 PM UTC

Alex, We have validated your requirement in File Manager component. Currently, File Manager has support to handle the data from the in-built AJAX operations (response from the default file operations of File Manager) and we do not have support to use File Manager without backend. The File Manager works with the file system provider which allows the component to manage the files and folders in a physical or cloud-based file system.


However, we have considered providing support to render the File Manager from an external JSON, i.e., there is no need to process the request using an ajax call, and this will be included in any of our upcoming releases. Generally, we will plan any feature implementation based on customer request count, feature rank and Wishlist plan. 


You can track the feature status through the below link,


https://www.syncfusion.com/feedback/10417/to-provide-option-to-render-the-filemanager-component-from-given-json


Once this feature is enabled, you will be able to directly set the JSON date for the File Manager component. Please let us know if you need any further assistance.


Regards,

Indhumathy L


Loader.
Live Chat Icon For mobile
Up arrow icon