Example: I try to check extension of a selcted file. If it’s not “jpg” i would like to delete the selected file directly out of the uploader box.
checking extension works with:
Problem solved. I changed “this._addFileToList”-Function (dhtmlxform_item_upload.js)
var extension = name.split('.');
extension = extension[extension.length - 1];
if (extension.toLowerCase() != 'jpg') {
that._removeFileFromQueue(id);
alert('Es sind nur Dateien im \'JPG\' Format erlaubt !');
}