Hi Mayank,
Greetings from Syncfusion support.
We have reviewed your query and understand that you need
to open a specific directory. We suggest using the “path”
property of the FileManager component, which will load the directory specified
by the path property.
Refer to the code snippet below for reference.
…..
let path = "/Music/"
return
(<div>
<div
className="control-section">
<FileManagerComponent id="overview_file" ajaxSettings={{
url: hostUrl + "api/FileManager/FileOperations", getImageUrl:
hostUrl + "api/FileManager/GetImage", uploadUrl: hostUrl +
'api/FileManager/Upload', downloadUrl: hostUrl + 'api/FileManager/Download'
}} view={"Details"} path={path}>
<Inject services={[NavigationPane, DetailsView, Toolbar]}/>
</FileManagerComponent>
</div>
</div>);
};
….
|
Sample: https://stackblitz.com/edit/react-1uqk7j-vbohgv?file=index.js
Please check the sample and let us know if you need any
further assistance.
Best Regards,
Vishwanathan