All Products
Demos
Pricing
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
Upload (Obsolete)
/
Any way to alert the user of a bad file type?
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Thread is closed for posting
Feed for this thread
3 posts, 0 answers
Ed Staffin
66 posts
Member since:
Nov 2008
Posted 08 Dec 2008
Link to this post
I know I can limit the file types that can be uploaded via AllowedFileExtensions, however, all it does is ignore bad file types. Since I am only allowing one file at a time to be uploaded, it would be nice if I could issue a radalert or something when the try to upload a type that is not allowed.
Any ideas?
Thanks ... Ed
Atanas Korchev
Admin
8462 posts
Posted 09 Dec 2008
Link to this post
Hi Ed Staffin,
I believe
this
example will help you achieve your goal.
I hope this helps,
Albert
the Telerik team
Check out
Telerik Trainer
, the state of the art learning tool for Telerik products.
Meaning Of Lights
24 posts
Member since:
Dec 2007
Posted 09 Dec 2008
Link to this post
As per http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=2803992&SiteID=1
Lookup "Winista" it uses binary analysis to determine a files MIME type...
Say someone renames a exe with a jpg extension... you can still determine the "real" file format. It doesn't detect swf's or flv's but does pretty much every other well known format + you can get a hex editor and add more files it can detect.
HTH
Back to Top