Missing File Behavior

3 posts, 0 answers
  1. Brian Azzi
    Brian Azzi avatar
    65 posts
    Member since:
    Mar 2010

    Posted 31 Jul 2013 Link to this post

    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. Brian Azzi
    Brian Azzi avatar
    65 posts
    Member since:
    Mar 2010

    Posted 31 Jul 2013 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 05 Aug 2013 Link to this post

    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.
Back to Top