change uploads directory

Last post 11-22-2007, 1:23 PM by oompah. 3 replies.
Sort Posts: Previous Next
  •  08-09-2005, 9:58 AM 9394

    change uploads directory

    Hello, i'm just wondering how i change the uploads folder to match my web app?
    Thanks
    Dan
  •  08-09-2005, 11:25 AM 9405 in reply to 9394

    Re: change uploads directory

    Dan,
     
    Please check the following articles:

    Setting up the Image gallery path
     
    http://cutesoft.net/developer+guide/Specifying-images-path.htm

    Setting up the Flash gallery path

    http://cutesoft.net/developer+guide/Setting-up-the-flash-gallery-path.htm

    Setting up the Media gallery path

    http://cutesoft.net/developer+guide/Setting-up-the-media-gallery-path.htm

    Setting up the Document gallery path

    http://cutesoft.net/developer+guide/Setting-up-the-flash-gallery-path.htm


    Hope it helps.

    Let me know if you have any further questions.

    Below is the information of Setting up the Image gallery path:

    How to specify the Image gallery path?

    You can easily specify the image gallery path using the following methods:

    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 ImageGalleryPath element which contains the image gallery path information within Cute Editor.  By default, it contains the following value:


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

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

    For example:

    Use absolute path:

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

     

    Use physical path:

     

    <securityname="ImageGalleryPath">c:\inetpub\wwwroot\uploads</security>

     

    2: Programmatically specify the Image gallery path


    C# Example:

    //use the app-based path 
    
    Editor1.Setting["security:ImageGalleryPath"]= "~/uploads";
    //use the absolute path 
    Editor1.Setting["security:ImageGalleryPath"]= "/uploads";
    //use the physical path 
    Editor1.Setting["security:ImageGalleryPath"]= @"c:\inetpub\wwwroot\uploads"; 
    


    VB Example:

    //use the app-based path 
    
    Editor1.Setting("security:ImageGalleryPath")= "~/uploads"
    //use the absolute path 
    Editor1.Setting("security:ImageGalleryPath")= "/uploads"
    //use the physical path 
    Editor1.Setting("security:ImageGalleryPath")= "c:\inetpub\wwwroot\uploads" 

     

     



     
     

     

     


    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

  •  11-22-2007, 1:13 PM 35310 in reply to 9405

    Re: change uploads directory

    Adam,
     
    This method doesn't seem to always want to work.
     
    I actually removed this line:
     
    <security name="ImageGalleryPath">~/uploads</security>
     
    From all three files: Admin.config, Default.config, Guest.config
     
    my code looks like this (where cute is my cuteeditor object)
     
    Cute.Setting("security:ImageGalleryPath") = Replace(FullPathtoBaby(BID), "/", "\") & "babypics\"
    Cute.SetSecurityImageGalleryPath(Replace(FullPathtoBaby(BID), "/", "\") & "babypics\")
     
    I've been trying both of those commands, one or the other, all combinations. No luck
     
    that simply sets an absolute local path like  c:\folder\etc\
     
    it occasionally works but occasionally it reverts back to setting "uploads" as the default folder
     
    any help would be greatly appreciated - I have no clue what else to try
     
     
     
     
     
     
  •  11-22-2007, 1:23 PM 35311 in reply to 35310

    Re: change uploads directory

    ok guys - when the page posts back (if you have set the image path programatically) you need to reset it.  That is what is causing it to stop working tbh
     
    hope that helps anyone else with this same problem
View as RSS news feed in XML