Autoload added files, hide upload and clean button

Hide the Clean button
getElementByClass(“dhxvlt_rbtn”, “hide”, “div”);

Hide the Upload button
getElementByClass(“dhxvlt_lbtn”, “hide”, “div”);

function getElementByClass(psClassName, psAction, psTagName) {
psAction = typeof psAction !== “undefined” ? psAction : “hide”;
psTagName = typeof psTagName !== “undefined” ? psTagName : “*”;

//Create Array of All HTML Tags
var allHTMLTags = document.getElementsByTagName(psTagName);
//Loop through all tags using a for loop
for (i = 0; i < allHTMLTags.length; i++) {
    //Get all tags with the specified class name.
    if (allHTMLTags[i].className == psClassName) {
      if (psAction == "hide") {
        allHTMLTags[i].style.display = "none";
        allHTMLTags[i].style.visibility = "hidden";
      }
      if (psAction == "show") {
        allHTMLTags[i].style.display = "";
        allHTMLTags[i].style.visibility = "visible";
      }
    }
}

}

Automatically do an upload on adding a file:
Edit dhtmlxvault.js
Search for:
dhtmlXVaultObject.prototype.getFileExtension
Add:
;this.uploadFile(currentId);

Like the below:
  this.checkFilesLimit();this.uploadFile(currentId); };dhtmlXVaultObject.prototype.getFileExtension