Re: Restrict Template Upload?

  •  01-07-2009, 10:33 AM

    Re: Restrict Template Upload?

    Disable the upload function.

     
    1: Edit security policy file.


    The security policy file (default.config, admin.config and guest.config) can be found in the /CuteEditor/Configuration/Security folder. In security policy file you can find the AllowUpload element. By default, it contains the following value:


    <security name="AllowUpload">true</security>
      

    You can modify the AllowUpload element to meet your own requirements.

    For example:

    <security name="AllowUpload">true</security> 

    2: Programmatically turn AllowUpload on and off


    C# Example:

    Editor1.Setting["security:AllowUpload"]= "true";


    VB Example:

    Editor1.Setting("security:AllowUpload")= "true"

    Hide Ajax Uploader in the inserttemplate.aspx file

    You can set CE:UploadSingleFile invisible by using Visible="false"
    a. Open CuteSoft_Client\CuteEditor\Dialogs\inserttemplate.aspx
    b. Change <CE:Uploader id="InputFile" runat="server"></CE:Uploader>
    to:
    <CE:Uploader id="InputFile" Visible="false" runat="server"></CE:Uploader>

    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