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

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

1 Answer 32 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 05 Sep 2013, 05:36 PM
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?

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 09 Sep 2013, 01:57 PM
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.


Regards,
Genady Sergeev
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
Richard
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or