unable to browse .aspx files when uploading

Last post 03-29-2010, 8:45 PM by cutechat. 9 replies.
Sort Posts: Previous Next
  •  03-10-2010, 4:22 PM 59315

    unable to browse .aspx files when uploading

    I am unable to browse .aspx files when uploading or inserting a link.  I have added.aspx to CuteSoft_Client\CuteEditor\Configuration\Security\Default.config under <security name="DocumentFilters">; however, I am still unable to see these file types.  When I add other extensions usch as .asp or .xml, I am able to see these files when I upload or insert a link. This worked previously in version 6.4.  I am unable to test this on 
    http://cutesoft.net/example/general.aspx because these file extensions are blocked. Please let me know what can be done to fix this; it is very important I have this functionality.
  •  03-11-2010, 9:31 AM 59325 in reply to 59315

    Re: unable to browse .aspx files when uploading

    jamesk:
    I am unable to browse .aspx files when uploading or inserting a link.  I have added.aspx to CuteSoft_Client\CuteEditor\Configuration\Security\Default.config under <security name="DocumentFilters">; however, I am still unable to see these file types.  When I add other extensions usch as .asp or .xml, I am able to see these files when I upload or insert a link. This worked previously in version 6.4.  I am unable to test this on 
    http://cutesoft.net/example/general.aspx because these file extensions are blocked. Please let me know what can be done to fix this; it is very important I have this functionality.
     
    I tested this issue using version 6.6. It works. Can you upgrade to 6.6 then try again?

    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

  •  03-11-2010, 9:49 AM 59329 in reply to 59325

    Re: unable to browse .aspx files when uploading

    Hi Adam,
     
      I have downloaded the latest version and I am still having this issue.  I can add any other extensions to the DocumentFilters but for some reason it doesn't work with aspx.  Is this the only place that defines allowable file types?
  •  03-12-2010, 10:30 AM 59363 in reply to 59325

    Re: unable to browse .aspx files when uploading

    Adam,
     
       I did some more troubleshooting and the root of the issue seems to be that I have both asp and aspx extension under DocumentFilters.  When I have both - asp is the only one that shows.  However, when I remove asp then I am able to see aspx again.   I need have both options so do you have an suggestions?
  •  03-18-2010, 12:25 PM 59488 in reply to 59325

    Re: unable to browse .aspx files when uploading

    Hi Adam,
     
        Any updates on this issue?  Have you been able to reproduce this issue with both .asp and .aspx in the config file?
     
    Thanks
  •  03-18-2010, 2:23 PM 59491 in reply to 59488

    Re: unable to browse .aspx files when uploading

    jamesk:
    Hi Adam,
     
        Any updates on this issue?  Have you been able to reproduce this issue with both .asp and .aspx in the config file?
     
    Thanks
     
    I am able to upload aspx files and browse aspx files with the following setting:
     
    1. <security name="DocumentFilters">  
    2.     <item>.txt</item>  
    3.     <item>.doc</item>  
    4.     <item>.pdf</item>  
    5.     <item>.zip</item>  
    6.     <item>.rar</item>  
    7.     <item>.avi</item>  
    8.     <item>.mpg</item>  
    9.     <item>.mpeg</item>  
    10.     <item>.mp3</item>  
    11.     <item>.wav</item>  
    12.     <item>.swf</item>  
    13.     <item>.jpg</item>  
    14.     <item>.jpeg</item>  
    15.     <item>.gif</item>  
    16.     <item>.png</item>  
    17.     <item>.htm</item>  
    18.     <item>.xls</item>  
    19.     <item>.html</item>  
    20.     <item>.rtf</item>  
    21.     <item>.wmv</item>  
    22.     <item>.asp</item>  
    23.     <item>.aspx</item>  
    24. </security>     

    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

  •  03-18-2010, 3:21 PM 59495 in reply to 59491

    Re: unable to browse .aspx files when uploading

    Adam,
     
      I has the same configuration as you posted above but I have an issue when both .asp and .aspx are there.  Likewise, for .htm and .html.  In SelectFile.aspx I noticed the following method:
     
     
        protected override void GetFiles(ArrayList files)
        {        
            foreach (string ext in secset.DocumentFilters)
            {
                if (ext == null || ext.Length == 0) continue;

                if (ext.Length > 4)
                {
                    if (!secset.DocumentFilters.Contains(ext.Substring(0, 4)))
                    {
                        files.AddRange(fs.GetFileItems(CurrentDirectory, secset.FileNamePrefix + "*" + ext));
                    }

                }
                else
                    files.AddRange(fs.GetFileItems(CurrentDirectory, secset.FileNamePrefix + "*" + ext));
            }        
            
        }
     
    Specifically the following line:
     
    if (!secset.DocumentFilters.Contains(ext.Substring(0, 4)))
     
    This line causes aspx and html to get skipped because I also have htm and asp in my filters.  So, where are aspx and html eventually added?  When I comment out that if statement I don't have this issue.
     
    Thanks
     
  •  03-26-2010, 1:32 PM 59677 in reply to 59495

    Re: unable to browse .aspx files when uploading

    Any word on this issue?  What are the impacts of commenting out the  if (!secset.DocumentFilters.Contains(ext.Substring(0, 4))) statement?

    Thanks
  •  03-29-2010, 3:36 PM 59725 in reply to 59677

    Re: unable to browse .aspx files when uploading

    We have another developer test this issue. It works for us again.
     
    Is that possible for you to create a new application and test the latest build?

    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

  •  03-29-2010, 8:45 PM 59728 in reply to 59495

    Re: unable to browse .aspx files when uploading

    Hi,
     
    Please delete the code and only keep this line.
     
    files.AddRange(fs.GetFileItems(CurrentDirectory, secset.FileNamePrefix + "*" + ext));
    Regards,
    Terry
View as RSS news feed in XML