Image URL/Upload Question

Last post 07-25-2004, 12:00 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  07-24-2004, 4:51 PM 1303

    Image URL/Upload Question

    Is there a way to specify an image upload directory that is outside the application directory?  Is there a way to specify the url for the image.  I have a situation where many different people with different domains login and edit html pages on different sites.  The Cute Editor is located in the common application directory, but I want the images to be uploaded and viewed in the individual  domains.  All the domains are on the same server, but I can't seem to specify a directory outside of the common area.  I would also need to specify the url before the image.  Would any of this be possible?

     
    Maybe an example would also help:
     
    The application where the Cute Editor is located is like
    C:\Inetpub\wwwroot\commonapplication\
     
    The image location where I want to upload would be like:
    C:\Inetpub\wwwroot\domain1\images
    C:\Inetpub\wwwroot\domain2\images
     
    Then the image url would only need to be:
    images\image1.jpg
     
    I would specify at runtime the image location directory.
     
    Thanks for any help you can provide.
     
  •  07-24-2004, 8:41 PM 1304 in reply to 1303

    Re: Image URL/Upload Question

    wescomputer,

     
    Try the following steps:
     
    1. Set the Editor.ImageGalleryPath Property to "/Images" in your applications as followings:
     
        editor1.ImageGalleryPath  = "/Images";
     
        Make sure the "Images" point to the same location:
        C:\Inetpub\wwwroot\domain1\images
        C:\Inetpub\wwwroot\domain2\images
     
     
    2. Set the Editor.ChangeAbsoluteURLsToRelative Property to true in your applications as followings:
      
        editor1.ChangeAbsoluteURLsToRelative = true;
     
        When this property is set to true, CuteEditor strips out the local server name from all A and IMG tags if the   hostname in the URL matches the current hostname.
    Hope it helps.

    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

  •  07-24-2004, 9:27 PM 1305 in reply to 1304

    Re: Image URL/Upload Question

    This helps all except the upload process.  Is there a way to specify a different upload directory that is outside the appliation directory?  Is there any help for that?

     
     
  •  07-25-2004, 12:00 PM 1307 in reply to 1305

    Re: Image URL/Upload Question

    wescomputer,

     
    If all your application/site are on the same server, the simple solution for your question is : In every application you just create a visual directory and map it to the sample physical location on your server.
     
    That will resolve the problem.
     
    If not, please tell me what does "outside the appliation directory" mean? You can creat a visual directory in your application and point it to any where in your server.

    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