Hi,
I have an issue where setting args.set_cancel(true) in the OnClientFileUploading event doesn't seem to cancel the upload.
I have a small working example of this.
The example checks that you are not uploading two files with the same name. Upon detecting that you are, it displays an alert and sets the cancel to true. I note however that when posting back, I still get a FileUploaded server event for each file, including the cancelled one(s).
How do I know that one of those is actually cancelled? What is the expected functionality of cancelling the upload through this method? All that seems to happen is the file indicator turns red but otherwise it seems it makes no difference to functionality.
Please help! :)
Andrew
I have an issue where setting args.set_cancel(true) in the OnClientFileUploading event doesn't seem to cancel the upload.
I have a small working example of this.
The example checks that you are not uploading two files with the same name. Upon detecting that you are, it displays an alert and sets the cancel to true. I note however that when posting back, I still get a FileUploaded server event for each file, including the cancelled one(s).
How do I know that one of those is actually cancelled? What is the expected functionality of cancelling the upload through this method? All that seems to happen is the file indicator turns red but otherwise it seems it makes no difference to functionality.
Please help! :)
Andrew