This question is locked. New answers and comments are not allowed.
Hi.
I'm using the onUpload client event to perform some validation of other controls that I use to provide metadata to be sent to the server (i.e. a file description). If the validation fails, I display a suitable message to the user, and call e.preventDefault().
However, when I do this the selected file is removed from the queue. This is not an action that I want to happen, as it forces the user to re-select the file, even though it was not the cause of the validation failure.
Is there some way to prevent this default behaviour? (I've amended the performUpload function in 'telerik.upload.js' for now, but I obviously don't want to amend the core code in the long run.)
Thanks,
Jon Knight
(Excellent controls, by the way!)
I'm using the onUpload client event to perform some validation of other controls that I use to provide metadata to be sent to the server (i.e. a file description). If the validation fails, I display a suitable message to the user, and call e.preventDefault().
However, when I do this the selected file is removed from the queue. This is not an action that I want to happen, as it forces the user to re-select the file, even though it was not the cause of the validation failure.
Is there some way to prevent this default behaviour? (I've amended the performUpload function in 'telerik.upload.js' for now, but I obviously don't want to amend the core code in the long run.)
Thanks,
Jon Knight
(Excellent controls, by the way!)