Any way to alert the user of a bad file type?

Thread is closed for posting
3 posts, 0 answers
  1. Ed Staffin
    Ed Staffin avatar
    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
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Meaning Of Lights
    Meaning Of Lights avatar
    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