Re: Cannot read image file uploaded by CE

  •  07-22-2008, 9:17 PM

    Re: Cannot read image file uploaded by CE

     
    root/CuteEditor_Files   - cuteeditor folder
    root/KCBSFileUpdate   - upload folder
     
    ************************************************
    admin.config
    ************************************************
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <security name="MaxImageSize">10000</security>
     <security name="MaxMediaSize">100000</security>
     <security name="MaxFlashSize">1000</security>
     <security name="MaxDocumentSize">10000</security>
     <security name="MaxTemplateSize">10000</security>
     <security name="ImageGalleryPath">/KCBSFileUpdate</security>
     <security name="MediaGalleryPath">/KCBSFileUpdate</security>
     <security name="FlashGalleryPath">/KCBSFileUpdate</security>
     <security name="TemplateGalleryPath">/templates</security>
     <security name="FilesGalleryPath">/KCBSFileUpdate</security>
     <security name="AllowUpload">true</security>
     <security name="AllowCreateFolder">true</security>
     <security name="AllowRename">true</security>
     <security name="AllowDelete">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>
     </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>.swf</item>
      <item>.jpg</item>
      <item>.jpeg</item>
      <item>.gif</item>
      <item>.png</item>
      <item>.htm</item>
      <item>.wmv</item>
     </security>
     <security name="TemplateFilters">
        <item>.html</item>
        <item>.htm</item>
      </security>
    </configuration>
     
    ************************************************
    default.config
    ************************************************
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <security name="MaxImageSize">1000</security>
     <security name="MaxMediaSize">100000</security>
     <security name="MaxFlashSize">1000</security>
     <security name="MaxDocumentSize">1000</security>
     <security name="MaxTemplateSize">1000</security>
     <security name="ImageGalleryPath">/KCBSFileUpdate</security>
     <security name="MediaGalleryPath">/KCBSFileUpdate</security>
     <security name="FlashGalleryPath">/KCBSFileUpdate</security>
     <security name="TemplateGalleryPath">/templates</security>
     <security name="FilesGalleryPath">/KCBSFileUpdate</security>
     <security name="AllowUpload">true</security>
     <security name="AllowCreateFolder">true</security>
     <security name="AllowRename">true</security>
     <security name="AllowDelete">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>.wav</item>
      <item>.wmv</item>
     </security>
     <security name="DocumentFilters">
      <item>.txt</item>
      <item>.doc</item>
      <item>.pdf</item>
      <item>.zip</item>
      <item>.rar</item>
      <item>.avi</item>
      <item>.htm</item>
      <item>.mp3</item>
      <item>.wav</item>
      <item>.pptx</item>
      <item>.wmv</item>
     </security>
     <security name="TemplateFilters">
      <item>.html</item>
      <item>.htm</item>
     </security>
    </configuration>
    ************************************************
    guest.config
    ************************************************
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <security name="MaxImageSize">200</security>
     <security name="MaxMediaSize">10000</security>
     <security name="MaxFlashSize">200</security>
     <security name="MaxDocumentSize">200</security>
     <security name="MaxTemplateSize">200</security>
     <security name="ImageGalleryPath">/KCBSFileUpdate</security>
     <security name="MediaGalleryPath">/KCBSFileUpdate</security>
     <security name="FlashGalleryPath">/KCBSFileUpdate</security>
     <security name="TemplateGalleryPath">/templates</security>
     <security name="FilesGalleryPath">/KCBSFileUpdate</security>
     <security name="AllowUpload">true</security>
     <security name="AllowCreateFolder">true</security>
     <security name="AllowRename">true</security>
     <security name="AllowDelete">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>
     </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>.swf</item>
      <item>.jpg</item>
      <item>.jpeg</item>
      <item>.gif</item>
      <item>.png</item>
      <item>.htm</item>
      <item>.wmv</item>
     </security>
     <security name="TemplateFilters">
        <item>.html</item>
        <item>.htm</item>
      </security>
    </configuration>
     
    ************************************************
    asp page using cuteeditor
    ************************************************
    <%
       Dim editor
       Set editor = New CuteEditor
       editor.ID = "Editor1"
       editor.Width = "520"
       editor.Height = "500"
       editor.AutoConfigure = "Simple"
       editor.Text = content
       editor.FilesPath = "/CuteEditor_Files"
       editor.ImageGalleryPath = "/KCBSFileUpdate"
       editor.EditorBodyStyle = "font:normal 12px arial;"
       editor.EditorWysiwygModeCss = "asp.css"   
       editor.Draw()     
      %>
View Complete Thread