When a user drags and drops a file from a third-party file management application we use into our own ticketing system the file is empty (0 KB in size). This is an issue with their application for which I'm building a workaround.
The RadAsyncUpload control allows this file to be added to the upload files collection, and uploaded to the site. An error is received when attempting to access this file, as one would expect.
Using the OnClientFileDropped event, I can read the file size property. If it's 0, add it to an array that is then read in the OnClientFileUploading event. If the current filename exists in this array, I cancel the upload.
My preference would be to handle this all within the OnClientFileUploading event. As of yet, I've been unable to read the file size within this event, and I'm presuming it is not available there.
Again, assuming I cannot get the file size property in this event, is there an event that occurs after the args.set_cancel(true) method is triggered, where I can remove these canceled uploads from the displayed list?