AllowedFileExtensions problem

Thread is closed for posting
5 posts, 0 answers
  1. arijit
    arijit avatar
    49 posts
    Member since:
    Jun 2012

    Posted 12 Feb 2009 Link to this post


    I am using
    Q3 - 2008.3.1125.35

    for Rad Upload i need only certain file types
    i tried 2 methods
    1) 

    string

     

    [] allowedFileExtensions = new string[2] { ".zip", ".doc" };

     

    RadUpload1.AllowedFileExtensions = allowedFileExtensions;

     

     
    2)

    <

     

    telerik:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".zip,.doc">

     

     

     

    </telerik:RadUpload>

    still not working, it is still showing the default one.
    Please help

     

     

  2. Cherif Diallo
    Cherif Diallo avatar
    7 posts
    Member since:
    May 2009

    Posted 16 Jun 2009 Link to this post

    I have the same problem with the Q1 2009 version 2009.2.527
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 17 Jun 2009 Link to this post

    Hi there,

    Please refer to the following help articles for details on the matter.

    Integrated Validation
    Custom Validation
    Validating using an ASP.NET validator

    Sincerely yours,
    Paul
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Cherif Diallo
    Cherif Diallo avatar
    7 posts
    Member since:
    May 2009

    Posted 17 Jun 2009 Link to this post

    Hi Paul

    event if this property doesn't validate the selected file, It should at least, when the "Choose File" dialog box pops up, set the default file extension allowed to what I setted instead of having "All(*.*)" in the dropdown combo box.
    This we will minimize errors.

    best Regards,
    Cherif Diallo
  6. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 17 Jun 2009 Link to this post

    Hello Cherif Diallo,

    Setting the extension in the choose file dialog is not technically possible. This is one of the known limitations of the <input type="file" /> HTML element which RadUpload is using.

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017