Hi Farai,
Greetings from Syncfusion support.
Based on your shared details, we understand that you need
to find the current folder/file location of File Manager component in ASP.NET
Core platform. You can get the current folder/file path details using the path property
of FileManager component. For your reference, we have attached the sample.
Here, we have printed current folder path in an external button click.
Check out the below mentioned code snippets for further
assistance.
<button onclick="getPathDetails()">GetPath</button>
<ejs-filemanager id="filemanager">
<e-filemanager-ajaxsettings url="/Home/FileOperations"
downloadUrl="/Home/Download"
uploadUrl="/Home/Upload"
getImageUrl="/Home/GetImage">
</e-filemanager-ajaxsettings>
</ejs-filemanager>
<script>
function getPathDetails(){
var fileObj = document.getElementById("filemanager").ej2_instances[0];
console.log(fileObj.path);
}
</script>
|
Also, check out the below links to know more about Core
FileaManager component.
Documentation : https://ej2.syncfusion.com/aspnetcore/documentation/file-manager/getting-started
API references : https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.FileManager.FileManager.html
Demo : https://ej2.syncfusion.com/aspnetcore/FileManager/Overview#/fluent
Please get back to us if you need any further assistance.
Regards,
Leo Lavanya Dhanaraj
Attachment:
FileManager_199b6fb8.zip