I am using the WebUpload control from the Infragistics.Web.UI.EditorControls namespace.
When I set e.Cancel = true in my UploadFinishing event handler it does not cancel the upload. As a result the FileUploaded page event fires, even though the upload should have canceled.
What do I need to do to make this work? Or do I need to do something myself, like delete the temporary file?
Hi TedTeichrieb,
If you want to cancel the upload, you should cancel the FileUploading client-side event:
function onFileUploading(e, file) { return false;}
Let me know if you have any questions.
How would the client know that the file it is uploading is not going to pass the server side test which requires the complete file to perform?
I thought the UploadFinishing event is raised server side. Once that event is complete the control renames the uploaded file and fires the UploadFinished event.