Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Cancel File Upload
posted

Hi Team,

I want to validate the file name before uploading a file. I tried to cancel the file upload in FileSelected & FileUploading event, but it's not working. Please let me know what is the issue in my code. I have attached for your reference.

Requirement:

1. Need to cancel the file upload, if the length of the filename exceed certain limit.

2. If a dropdown value is not selected, then alert the user to select the dropdown and cancel the upload.

3. After cancelling the fileupload, i should able to select another file. Now it's getting disabled.

Thanks,

Karthick.K

WebApplication1.zip
Parents Reply Children