DHTMLX Docs & Samples Explorer

Files Limit

To control the maximum number of files user may upload, use setFilesLimit(count) method.
The code below will set files limit to 1, so user will be able to upload one and only one file. When he chooses one file, the "Add" button is disabled.
If you want to set it to unlimited, use the 0 (zero) count value - vault.setFilesLimit(0).

Source
<div id="vaultDiv"></div> <script> vault=new dhtmlXVaultObject(); vault.setImagePath("codebase/imgs/"); vault.setServerHandlers("UploadHandler.php", "GetInfoHandler.php", "GetIdHandler.php"); vault.setFilesLimit(1); vault.create("vaultDiv"); </script>