Re: [CE v4.0] How to change InsertImage path?

  •  12-19-2004, 12:01 AM

    Re: [CE v4.0] How to change InsertImage path?

     
    In the version 4.0, you can easily change the image gallery path using the following methods.

    1. Edit the security policy file (default.config, admin.config and guest.config).

    The security policy file (default.config, admin.config and guest.config) can be found in the /CuteEditor/Configuration/Security folder.

    <configuration>

        <securityname="RestrictUploadedImageDimension">false</security>

        <securityname="AutoResizeUploadedImages">false</security>

        <securityname="MaxImageWidth">6400</security>

        <securityname="MaxImageHeight">4800</security>

        <securityname="MaxImageSize">10000</security>

        <securityname="MaxMediaSize">10000</security>

        <securityname="MaxFlashSize">1000</security>

        <securityname="MaxDocumentSize">10000</security>

        <securityname="ImageGalleryPath">~/uploads</security>

        <securityname="MediaGalleryPath">~/uploads</security>

        <securityname="FlashGalleryPath">~/uploads</security>

        <securityname="FilesGallaryPath">~/uploads</security>

        ........

        ........

    </configuration>


    2. Programmatically set the image gallery path 

     Example:    var  folder = "whatever";
       string phyfolder=Server.MapPath(folder);
       System.IO.Directory.CreateDirectory(phyfolder);
       Editor1.Setting["security:ImageGalleryPath"]=
       Editor1.Setting["security:MediaGalleryPath"]=
       Editor1.Setting["security:FlashGalleryPath"]=
       Editor1.Setting["security:FilesGallaryPath"]=
        folder

    Hope it helps.

    Let me know if you have any further questions.

      

    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 Complete Thread