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 = "Image files(jpg,png)";
            filter.Extensions = new string[2];
            filter.Extensions[0] = "jpg";
            filter.Extensions[1] = "png";

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Jul 2013 Link to this post

    Hi Vinod,

    RadAsyncUpload uses Upload Modules for different browsers. For Internet Explorer it uses Silverlight which allows to display the filter extensions in Open Dialog Window. For other modules that support rest of the browsers filter is working but it is not displayed in the Open Dialog Window as modules don't support it. Here is the help topic where this issue is explained.

Back to Top