File Filter Doesn't Work

2 posts, 0 answers
  1. Vinod
    Vinod avatar
    2 posts
    Member since:
    Jul 2013

    Posted 23 Jul 2013 Link to this post

    I need to filter the files displayed in the browse dialogue window based on file types. I am using RadAsyncUpload control to
    accomplish this.
    • When I browse in FF, I can see two browse button displayed. Clicking on first browse button doesn't open dialogue with file lists. Attached the image. I want a simple file upload control with single browse button. I had a similar issue in IE but resolved by adding the following. But  issue still persists in FF.
      <TeleControl:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1"> </TeleControl:RadStyleSheetManager>
    • When I browse with applying file filter for Image files(jpg,png), It shows all files in the open dialogue window instead of showing only those files with extension .jpg or .png. Attached the screen shot. But when I refresh the page it works fine. 
    • Can you please explain how does this file filter works in RadAsyncUpload w.r.t browsers. As far as I know, It depends on upload module. IE prefers silver light first where as FF prefers flash. Is that possible to make filters work in IE with having only flash (not silverlight)?. In which scenario does this combination (IE or FireFox with only flash) fails?.

    Please find the aspx code:
    <TeleControl:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1"></TeleControl:RadStyleSheetManager>

    <TeleControl:RadAsyncUpload ID="RadAsyncUpload1" runat="server">
    <Localization Select="Browse" />

    C# ( page behind):
    protected void Page_Load(object sender, EventArgs e)
           var filter = new FileFilter();
            filter.Description = "GftxFiles(gftx,jpg)";
            filter.Extensions = new string[2];
            filter.Extensions[0] = "gftx";
            filter.Extensions[1] = "jpg";

  2. Plamen
    Plamen avatar
    2723 posts

    Posted 25 Jul 2013 Link to this post


    Please continue the discussion in the other thread that you submitted here.

    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 the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top