BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<ejs-filemanager id="file" height="500px">
<e-filemanager-ajaxsettings url="/Home/FileOperations" uploadUrl="/Home/Upload" downloadUrl="/Home/Download" getImageUrl="/Home/GetImage"></e-filemanager-ajaxsettings>
</ejs-filemanager> |
<ejs-filemanager id="file" height="500px">
<e-filemanager-ajaxsettings url="http://localhost:62869/api/FileManager/FileOperations" uploadUrl="http://localhost:62869/api/FileManager/Upload" downloadUrl="http://localhost:62869/api/FileManager/Download" getImageUrl="http://localhost:62869/api/FileManager/GetImage"></e-filemanager-ajaxsettings>
</ejs-filemanager> |
string root = "wwwroot\\files";
//Here we have accessed shared path within the application. You can change it to the path which you need to access
this.operation = new FileManagerProviderBase(this.basePath + "\\" + this.root); |
@{
// Name of the file/folder to be selected
string[] selectedItems = { "Bread.png" };
}
<ejs-filemanager id="file" height="500px" selectedItems="selectedItems">
<e-filemanager-ajaxsettings url="/Home/FileOperations" uploadUrl="/Home/Upload" downloadUrl="/Home/Download" getImageUrl="/Home/GetImage"></e-filemanager-ajaxsettings>
</ejs-filemanager> |
// Provide the path of the folder which needs to be selected in the treeview
<ejs-filemanager id="file" path="/Food" height="500px">
<e-filemanager-ajaxsettings url="/Home/FileOperations" uploadUrl="/Home/Upload" downloadUrl="/Home/Download" getImageUrl="/Home/GetImage"></e-filemanager-ajaxsettings>
</ejs-filemanager> |
//File Manager’s created event
function onCreated(args) {
// Adding disable class to the breadcrumb bar
document.getElementById("file").querySelector(".e-address").classList.add('disable');
}
<style>
/* Setting pointer-events to none for the breadcrumb bar*/
.disable > .e-addressbar-ul {
pointer-events: none;
}
</style> |
// File Manager’s beforeFileLoad event
function beforeFileLoad(args) {
// Checking the module and folder nams
if (args.module === "navigationpane" && args.fileDetails.name !== "Food") {
// Adding disable class to the node if it is not the current path
args.element.classList.add('disable');
}
}
<style>
/* Setting pointer-events to none for the nodes*/
.disable > .e-fullrow {
pointer-events: none;
}
/* Setting pointer-events to none for the node icons*/
.disable > .e-icon-wrapper > .e-icons {
pointer-events: none;
}
</style> |
// File Manager’s beforeFileOpen event
function beforeFileOpen(args) {
// Checked if it is file or folder
if (!args.fileDetails.isFile) {
// Cancelled the event
args.cancel = true
}
} |