Upgrade to 6.4 and prob with security config

  •  10-02-2009, 12:14 PM

    Upgrade to 6.4 and prob with security config

    Hi
     
    I just upgraded from v6 to v6.4. I have a problem where SetSecurityImageGalleryPath doesn't seem to be working. Note that the exact same code and configuration I have works fine with v6.
     
    I removed the v6 dll files and app files. I copied the v6.4 dll files and app files. I copied all custom config files to same locations as v6 (CuteSoft_Client\CuteEditor\Configuration\Security). The editor works but when I use the image button I get this error: Could not find a part of the path "C:\Inetpub\wwwroot\abc\Uploads\".
     
    So, my code is (I've added the spaces in the tags for pasting in this forum):
    < CE:Editor id="IconFilePath" ShowPreviewMode="False" EditorWysiwygModeCss="ce.css" Width="1" 
                   ShowBottomBar="False" Height="1" EnableViewState="False" runat="server" ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/ImageOnly.config" ></ CE:Editor >
     
    In the code-behind:
       CuteEditor.Editor ce=(CuteEditor.Editor)e.Item.FindControl("IconFilePath");
       
    if(ce!=null)
       {
          ce.SetSecurityImageGalleryPath("~/../images/icons");
          // also tried  @"C:\Inetpub\wwwroot\abc\images\icons"
       }
     
    The only config file CuteSoft_Client\CuteEditor\Configuration\Security\ImageOnly.config has:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <security name="RestrictUploadedImageDimension">true</security>
     <security name="OverWriteExistingUploadedFile">true</security>
     <security name="UseTimeStampRenameUploadedFiles">false</security>
     <security name="AutoResizeUploadedImages">true</security>
     <security name="MaxImageWidth">1024</security>
     <security name="MaxImageHeight">768</security>
     <security name="MaxImageSize">1000</security>
     <security name="MaxMediaSize">10000</security>
     <security name="MaxFlashSize">1000</security>
     <security name="MaxDocumentSize">10000</security>
     <security name="MaxTemplateSize">1000</security>
     <security name="ImageGalleryPath">~/../images</security>
     <security name="MediaGalleryPath">~/../images</security>
     <security name="FlashGalleryPath">~/../images</security>
     <security name="TemplateGalleryPath">~/templates</security>
     <security name="FilesGalleryPath">~/../images</security>

     <security name="MaxImageFolderSize">1000000</security>
     <security name="MaxMediaFolderSize">1000000</security>
     <security name="MaxFlashFolderSize">1000000</security>
     <security name="MaxDocumentFolderSize">1000000</security>
     <security name="MaxTemplateFolderSize">1000000</security>
     <security name="ThumbnailWidth">80</security>
     <security name="ThumbnailHeight">80</security>
     <security name="ThumbnailColumns">5</security>
     <security name="ThumbnailRows">3</security>
     <security name="AllowUpload">true</security>
     <security name="AllowModify">true</security>
     <security name="AllowRename">true</security>
     <security name="AllowDelete">true</security>
     <security name="AllowCopy">true</security>
     <security name="AllowMove">true</security> <!-- this is rename too -->
     <security name="AllowCreateFolder">true</security>
     <security name="AllowDeleteFolder">true</security>
     <security name="ImageFilters">
      <item>.jpg</item>
      <item>.jpeg</item>
      <item>.gif</item>
      <item>.png</item>
     </security>
     <security name="MediaFilters">
      <item>.avi</item>
      <item>.mpg</item>
      <item>.mpeg</item>
      <item>.mp3</item>
      <item>.wmv</item>
      <item>.wav</item>
     </security>
     <security name="DocumentFilters">
      <item>.txt</item>
      <item>.doc</item>
      <item>.pdf</item>
      <item>.zip</item>
      <item>.rar</item>
      <item>.avi</item>
      <item>.mpg</item>
      <item>.mpeg</item>
      <item>.mp3</item>
      <item>.wav</item>
      <item>.swf</item>
      <item>.jpg</item>
      <item>.jpeg</item>
      <item>.gif</item>
      <item>.png</item>
      <item>.htm</item>
      <item>.xls</item>
      <item>.html</item>
      <item>.rtf</item>
      <item>.wmv</item>
     </security> 
     <security name="TemplateFilters">
      <item>.txt</item>
      <item>.rtf</item>
      <item>.html</item>
      <item>.htm</item>
      <item>.xml</item>
     </security>
     <security name="filenamePattern">^[a-zA-Z0-9\._\s-\#]+$</security>
    </configuration>
     
    If I uninstall v6.4 and reinstall v6, all this still works.
    Any help appreciated.
    Thanks!
     
     
View Complete Thread