Uploading and Downloading, JavaScript Programming Example of Uploading and Downloading in File Manager

JavaScript Programming Example of Uploading and Downloading in File Manager

Webix File Manager allows you to upload files into a selected folder or download any items by double-clicking on them. See the programming example below.

JS Code

webix.ready(function(){
  webix.ui({
    rows:[
      { view: "label", css: "header", label: "File Manager allows to upload files into selected folder."},
      {
        view:"filemanager",
        id:"files",
        handlers:{
          "upload" : "https://docs.webix.com/samples/64_file_manager/common/data.php",
          "download": "https://docs.webix.com/samples/64_file_manager/common/data.php",
          "remove": "https://docs.webix.com/samples/64_file_manager/common/data.php"
        }
      }
    ]
  });

  $$("files").load("https://docs.webix.com/samples/64_file_manager/common/data.php");
});

HTML Code

<style>
  .header{
    background: #e5e5e5;
  }
  .header div{
    padding: 0 10px;
  }
</style>