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

Custom async handler: Need event before download finished

1 Answer 28 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Stephan
Top achievements
Rank 1
Stephan asked on 31 Dec 2011, 05:55 PM
Hello,

The Process() method in custom async handlers is great. However, it is called only upon completed download of a file.

Is there a way to hook into an earlier handler event at the moment the download is initiated? The idea is that I would like to check whether the file is valid as early as possible. It looks bad to have the user wait for a 50MB upload only to tell at the end that the file cannot be uploaded (e.g. if it already exists). 

Thank you,
Stephan

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 04 Jan 2012, 01:34 PM
Hi Stephan,

 
You can validate the file on the client side by declaring the desired "MaxFileSize" and "AllowedFileExtensions" as in the demo.

Hope this will help.

Kind regards,
Plamen Zdravkov
the Telerik team
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 their blog feed now
Tags
AsyncUpload
Asked by
Stephan
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or