Uploader events

I found the events list here:
docs.dhtmlx.com/doku.php?id=dhtm … nts_form&s[]=onUploadComplete

I don’t see events that occur when a file is dropped or selected via the browser dialog. I would like to hook the event and test the file type (jpg for example) prior to uploading and reject the file. I can do it in the handler but It won’t get to the handler until after the data is sent to the server. Rejecting it in JS limits server load.

Hi

we will add this event info future release, for now:

dhtmlxform_item_upload.js, find:
this._addFileToList = function(…){
// add the the end of function
this.callEvent(“onFileAdd”, [name]);
}

Brilliant! Thank you. I will give that a run.