This is a migrated thread and some comments may be shown as answers.

Missing File Behavior

2 Answers 51 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Brian Azzi
Top achievements
Rank 2
Brian Azzi asked on 31 Jul 2013, 06:12 PM
Hello...

I have an odd situation (which of course my QA team found). Basically, I am setup using the RadAsyncUpload control in manual upload mode (triggered by an upload button).

What I have noticed is that if the user selects file "A", then file "A" is deleted prior to clicking submit, then the upload control misbehaves. In this case, it actually is NOT throwing any type of error (I have tried various client events & also the server side event), but actually uploads a 0kb file with the same name as the original file.

Is this expected behavior? Is the best way to work around this to simply validate the existence of the file in my own code prior to initiating the upload?

Thanks!
-Brian

2 Answers, 1 is accepted

Sort by
0
Brian Azzi
Top achievements
Rank 2
answered on 31 Jul 2013, 08:08 PM
Also, one approach I have attempted is to inspect the file in the FileUploaded server event... and to set IsValid to false if 0 is detected as the content length. This, however, isn't working either as it seems like IsValid isn't really doing anything? (I would assume that would cause the client error event to fire, but it is not). 

-Brian
0
Plamen
Telerik team
answered on 05 Aug 2013, 10:33 AM
Hi Brian,

 
Thank you for contacting Telerik support.

I have tested the scenario that you described but unfortunately could not observe the same functionality as the unusual behavior. I am attaching my test isolated web page. Would you please review it and if the unusual behavior can be observed with it as well please share the exact step to reproduce it with us so we could be more helpful.

I am looking forward for your reply.

Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
AsyncUpload
Asked by
Brian Azzi
Top achievements
Rank 2
Answers by
Brian Azzi
Top achievements
Rank 2
Plamen
Telerik team
Share this question
or