Hi all,
I have a filebox where I test the filesize.
Here the code:
{field:'uploadFile',title:'File',width:300,
editor: {
type: 'filebox',
options: {
validType: 'maxFileSize[10000]',
onChange: function(value) {
var File = value;
_uploadFile($(this), File);
}
}
}
}
_uploadFile() is a function that upload the file to the server and starts after an onChange event.
This means that the file is uploaded also if the maxFileSize test is no passed.
How can I avoid this ?
In other words I want to start the function _uploadFile() only if the maxFileSize test is passed.
Thanks
Miche