Can you add a setting to disable the uploads folder

Last post 09-10-2008, 11:37 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  09-09-2008, 3:29 AM 43751

    Can you add a setting to disable the uploads folder

    We we cannot use the uploads folder as this would not work for our app for various reasons.
     
    Would you be able to add a property to disable file uploads ... it would necessitate removing Browse buttons from places like the Link Dialog but I think it would be a small change.

    At the moment I have to go through the code and remove all browse fields that would access the Uploads folder and I should not need to change the source code myself.
  •  09-10-2008, 11:37 AM 43824 in reply to 43751

    Re: Can you add a setting to disable the uploads folder

    Try:
     
    Editor1.Setting["security:AllowUpload"]= false;
    Editor1.Setting["security:AllowDelete"]= false;
    Editor1.Setting["security:AllowCreateFolder"]= false;
    Editor1.Setting["security:AllowDeleteFolder"]= false;
    Editor1.Setting["security:AllowMove"]= false;
    Editor1.Setting["security:AllowCopy"]= false;
     

    Or modify the security policy file:
     

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

    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