Is it possible "reset" the uploaded state of a fileinput?

2 posts, 0 answers
  1. Richard
    Richard avatar
    4 posts
    Member since:
    Mar 2011

    Posted 05 Sep 2013 Link to this post

    I am using RadAsyncUpload.

    I would like to select a file via "browse" from the input, perform a preview which that does some pre-processing and validation.I then return information to the user regarding the validity of the upload file. If the end users wishes too, they should just be able simply press another button which writes the changes. I noticed that after a file is uploaded even though the name persists in the input, performing and upload again does not do anything. Is there a way to achieve this behavior?
  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 09 Sep 2013 Link to this post

    Hello Richard,

    You can implement custom HttpHandler that does the validation then returns validation information to the client. After that, if the validation is success the customer can post the page to the server and RadAsyncUpload will process the file. Otherwise you can remove the file from the async upload.

    Genady Sergeev
    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