Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Dialog pop-ups don't specify correct filters

Last post 11-30-2006, 9:53 PM by fredd. 2 replies.
Sort Posts: Previous Next
  •  11-30-2006, 2:10 PM 24729

    Dialog pop-ups don't specify correct filters

    Whenever I click the [Browse] button from any of the Insert functions, it always shows:
     
    All Files
    Pictures
    HTML
     
    instead of the filters specified in the security config file.
     
    What has to be done to correct this?
     
    Fred
  •  11-30-2006, 8:19 PM 24748 in reply to 24729

    Re: Dialog pop-ups don't specify correct filters

    The file browse dialog doesn't set any filters.
     
    If you want to set it using DocumentFilters, please follow the steps below:
     
    1. Open SelectFile.Frame.aspx file and find th following function:
     
    protected override void GetFiles(ArrayList files)
        {
      files.AddRange(fs.GetFileItems(CurrentDirectory,secset.FileNamePrefix + "*.*"));
        }
     
    2. Change it to:
     
     protected override void GetFiles(ArrayList files)
        {
            foreach (string ext in secset.DocumentFilters)
            {
                if (ext == null || ext.Length == 0) continue;
                files.AddRange(fs.GetFileItems(CurrentDirectory, secset.FileNamePrefix + "*" + ext));
            }       
           
        }
     
    Hope it helps.
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-30-2006, 9:53 PM 24758 in reply to 24748

    Re: Dialog pop-ups don't specify correct filters

     
    Here's what I see in the Choose file dialog, Adam. You can see that the "Files of type" shows All Files (*.*), Pictures(*.gif... etc.
     
    These are not the options that should be displaying when the Insert Flash function is called. It's the same for all the "Insert" functions - none of them show the correct "Files of type".
     
    How do I change the "Files of type" filters in the Choose file dialog?
     
     
     
     
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.