I have the code from the dhtmlx. And I want that when I click on “Add file”
vault.strings.btnAdd = "Add file";
also automatically appear write to a txt file with a date who added the file. I have no idea how to go about it.
<div id="vaultDiv"></div>
<script>
vault=new dhtmlXVaultObject();
vault.setImagePath("codebase/imgs/");
vault.setServerHandlers("UploadHandler.php",
"GetInfoHandler.php",
"GetIdHandler.php");
vault.strings.btnAdd = "Add file";
vault.strings.btnUpload = "Upload";
vault.strings.btnClean = "Clean";
vault.strings.errors["TooBig"] = "File is too big ({0} bytes).\nMax allowed size is {1}.";
vault.strings.errors["PostSize"] = "Undefined server error. Possible issues:\n"+
"- Unicode file name incorrectly processed by the server;\n"+
"- File size is bigger than server's post-request limit ({0}).";
vault.create("vaultDiv");
</script>