downloadable files / insert hyperlink > browse throw error

Last post 07-24-2006, 12:11 PM by Adam. 6 replies.
Sort Posts: Previous Next
  •  06-15-2005, 9:37 AM 7622

    downloadable files / insert hyperlink > browse throw error

    They are both looking for the ~/Uploads path even though all of our security config files have been changed to point to ~/Content.
  •  06-15-2005, 10:31 AM 7624 in reply to 7622

    Re: downloadable files / insert hyperlink > browse throw error

    It's strange.

    Can you post your security policy file?
     
    ----------
     
    <security name="ImageGalleryPath">~/uploads</security>
    <security name="MediaGalleryPath">~/uploads</security>
    <security name="FlashGalleryPath">~/uploads</security>
    <security name="TemplateGalleryPath">~/templates</security>
    <security name="FilesGalleryPath">~/uploads</security>
     
    ---------
     
    Please note that the you should modify the FilesGalleryPath to specify the Document gallery path.
     
    If you programmatically specify the Document gallery path, the following formats are correct.
     
    //use the app-based path
    Editor1.Setting["security:FilesGallaryPath"]= "~/uploads";

    //use the absolute path
    Editor1.Setting["security:FilesGallaryPath"]= "/uploads";

    //use the physical path
    Editor1.Setting["security:FilesGallaryPath"]= @"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

  •  06-15-2005, 11:51 AM 7641 in reply to 7624

    Re: downloadable files / insert hyperlink > browse throw error

    Nothing is being set in code.
     

    <?

    xmlversion="1.0"encoding="utf-8"?>

    <

    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">100000</security>

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

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

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

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

    <securityname="ThumbnailWidth">80</security>

    <securityname="ThumbnailHeight">80</security>

    <securityname="ThumbnailColumns">5</security>

    <securityname="ThumbnailRows">3</security>

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

    <securityname="AllowDelete">true</security>

    <securityname="AllowCopy">true</security>

    <securityname="AllowMove">true</security><!-- this is rename too -->

    <securityname="AllowCreateFolder">true</security>

    <securityname="AllowDeleteFolder">true</security>

    <securityname="ImageFilters">

    <item>.jpg</item>

    <item>.jpeg</item>

    <item>.gif</item>

    <item>.png</item>

    </security>

    <securityname="MediaFilters">

    <item>.avi</item>

    <item>.mpg</item>

    <item>.mpeg</item>

    <item>.mp3</item>

    </security>

    <securityname="DocumentFilters">

    <item>.txt</item>

    <item>.doc</item>

    <item>.pdf</item>

    <item>.zip</item>

    <item>.rar</item>

    <item>.avi</item>

    <item>.mpg</item>

    <item>.mpeg</item>

    <item>.mp3</item>

    <item>.jpg</item>

    <item>.jpeg</item>

    <item>.gif</item>

    <item>.png</item>

    <item>.swf</item>

    </security>

    </

    configuration>
  •  06-15-2005, 12:35 PM 7645 in reply to 7641

    Re: downloadable files / insert hyperlink > browse throw error

    twilliams558,

    What's the name of this security policy file?

    Are you sure you are using this one?



    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

  •  06-15-2005, 12:40 PM 7646 in reply to 7645

    Re: downloadable files / insert hyperlink > browse throw error

    That was from the Default.config file.  The *Paths directives are the same in all the files (Default, Admin, Guest).  I never set or override the security file being used.
  •  07-21-2006, 12:29 PM 21156 in reply to 7646

    Re: downloadable files / insert hyperlink > browse throw error

    So what's the answer here.  I'm having the same problem.  The only differance is I'm programatically setting the path.

    ceMaintenance.Setting("security:ImageGalleryPath") = "~/images_customer/" & Session("EmployerID")
    ceMaintenance.Setting(
    "security:MediaGalleryPath") = "~/images_customer/" & Session("EmployerID")
    ceMaintenance.Setting(
    "security:FlashGalleryPath") = "~/images_customer/" & Session("EmployerID")
    ceMaintenance.Setting(
    "security:FilesGallaryPath") = "~/images_customer/" & Session("EmployerID")
     
    None of these seem to have any affect on the Downloadable Files path.
  •  07-24-2006, 12:11 PM 21190 in reply to 21156

    Re: downloadable files / insert hyperlink > browse throw error

    Can you try the following code?
     
    Dim Temfolder
     
    Temfolder = "~/images_customer/" & Session("EmployerID")

    If Not Directory.Exists(HttpContext.Current.Server.MapPath(Temfolder)) Then
       Directory.CreateDirectory(HttpContext.Current.Server.MapPath(Temfolder))
    End If
     
    SetUploadsFolder(Temfolder)

    Sub SetUploadsFolder(ByVal folder As String)
       Editor1.Setting("security:ImageGalleryPath")=folder
       Editor1.Setting("security:MediaGalleryPath")=folder
       Editor1.Setting("security:FlashGalleryPath")=folder
       Editor1.Setting("security:FilesGallaryPath")=folder
    End Sub
     
    Keep me posted
     
     

    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