Folder size check is causing image gallery and downloadable files dialogs to open extremely slow...How do we turn this off?

Last post 05-19-2006, 1:27 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  05-18-2006, 4:46 PM 19306

    Folder size check is causing image gallery and downloadable files dialogs to open extremely slow...How do we turn this off?

    We are having an issue with the folder size check in the image gallery and downloadable files dialog boxes.  We have about 10 GB of files in the download files area and we don't care about the folder size restrictions so it is currently set to 100 GB.  The problem is that when a user clicks either button, it takes about 5-7 minutes to open the dialogs.  This seems to be due to the folder size check, which we don't care about.   Is there a way to turn off the size check for documents/images in a folder?  This is a major issue for us.
  •  05-19-2006, 1:27 AM 19323 in reply to 19306

    Re: Folder size check is causing image gallery and downloadable files dialogs to open extremely slow...How do we turn this off?

    dalmuti509,
     
    >>Is there a way to turn off the size check for documents/images in a folder? 
     
    Please open InsertDocument.Frame.aspx, Gecko_InsertDocument.Frame.aspx and safari_insertdocument.aspx.
     
    And find the following code:
     
      protected override string CheckUploadData(ref byte[] data)
        {
      if (fs.GetDirectorySize(fs.VirtualRoot) >= secset.MaxDocumentFolderSize * 1024)
               return "File folder size exceeds the limit: "+ CuteEditor.Impl.FileStorage.FormatSize(secset.MaxDocumentFolderSize * 1024);
      if (data.Length >= secset.MaxDocumentSize * 1024)
                return "File size exceeds "+CuteEditor.Impl.FileStorage.FormatSize(secset.MaxDocumentSize * 1024)+" limit: "+ CuteEditor.Impl.FileStorage.FormatSize(data.Length);
            return null;
        }
     
    Change it to:
     
      protected override string CheckUploadData(ref byte[] data)
        {
      if (fs.GetDirectorySize(fs.VirtualRoot) >= secset.MaxDocumentFolderSize * 1024)
               return "File folder size exceeds the limit: "+ CuteEditor.Impl.FileStorage.FormatSize(secset.MaxDocumentFolderSize * 1024);
      if (data.Length >= secset.MaxDocumentSize * 1024)
                return "File size exceeds "+CuteEditor.Impl.FileStorage.FormatSize(secset.MaxDocumentSize * 1024)+" limit: "+ CuteEditor.Impl.FileStorage.FormatSize(data.Length);

            return null;
        }
     
    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

View as RSS news feed in XML