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

Stop Postback if the file extensions are not proper

1 Answer 64 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
vishesh kumar
Top achievements
Rank 1
vishesh kumar asked on 24 Jan 2010, 02:37 PM
Hi,

I want to stop the post back of the page on submit button if the file uploaded in the radUpload control does not match the currect extension and mime types specified at the client side using the AllowedFileExetensions and AllowedMimeTypes properties.

How do i go about doing that??

Thanks

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 25 Jan 2010, 09:59 AM
Hello vishesh kumar,


You can use the clientside validateExtensions method combined with ASP.NET custom validator. More information on that scenario can be found in following help article.

Greetings,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Upload (Obsolete)
Asked by
vishesh kumar
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or