I am trying to upload a excel which is opened. The RadUpload tries to upload for while and throws exception. how should i handle this scenario. is there a workaround for this?
I am using the Q1, 2011 version
Thanks
1 Answer, 1 is accepted
0
Alex Fidanov
Telerik team
answered on 05 May 2011, 09:10 AM
Hi David,
When the RadUpload tries to open (read) the selected file and access is not allowed, the file will be ignored and will not be uploaded. You would see an error icon next to the file in the control. There is nothing we could do until the other process releases the file. You could iterate through the RadUploadItems in the Items collection of the Upload control and check their ErrorMessage property. If there is one with this exception, then you could try to open the file or prompt the user to close it before uploading.
Best wishes,
Alex Fidanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items