Filter on file types to attach

Is it possible to set which file extensions are valid to attach using the Vault? If I wanted to only be able to attach .doc and .pdf, I would only want to see the .doc and .pdf files available in the folder to attach when browsing.

Try this:

  vault.onAddFile = function(fileName) {
    var ext = this.getFileExtension(fileName);
    if (ext != "csv") {
       alert("You can only upload csv documents. Please retry.");
       return false;
    }
    else return true;
  };

Brgds.
-Real

But if you are using the uploader already included in the dhtmlxForm is any way to implement this?

Hi

form’s uploader have onBeforeFileAdd event, logic the same
docs.dhtmlx.com/doku.php?id=dhtm … orefileadd