Firewall Issue

Last post 06-28-2004, 11:07 PM by MansonServices. 3 replies.
Sort Posts: Previous Next
  •  06-11-2004, 5:49 PM 1004

    Firewall Issue

    Hello Adam,

        I am having a problem with the "downloadable files" dialog. When I click the button, after a long wait a blank window appears that says "Web Dialog" in the title bar. When trying to troubleshoot this I noticed that when I I click the button for  "downloadable files" I see many entries in my firewall log of CuteEditor trying to use different ports. Can you explain what is going on and what ports need to be open for the  "downloadable files" dialog to work? The image upload seems to work without this issue. Thanks for your help.
     
    Jim
  •  06-14-2004, 10:05 PM 1018 in reply to 1004

    Re: Firewall Issue

    Jim,

     
    The "downloadable files" and "imagegallery" follow the same code path. The only difference is :  "downloadable files" allow you to view and download Files.
     
    To handle the download, we use the following fuctions:
     
     

    function downloadfile(file)

        dim objFSO,objFile,objStream

        Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

        Set objFile = objFSO.GetFile(file)

        dim name, size

        name = objFile.Name

        size = objFile.Size

        Set objFile = Nothing

        Set objFSO = Nothing

        Response.Clear

        Response.AddHeader "Content-Disposition", "attachment; filename=" & name

        Response.AddHeader "Content-Length", size

        Response.ContentType = "application/octet-stream"

        Set objStream = Server.CreateObject("ADODB.Stream")

        objStream.Open

        objStream.Type = 1

        Response.CharSet = "UTF-8"

        objStream.LoadFromFile(file)

        Response.BinaryWrite(objStream.Read)

        objStream.Close

        Set objStream = nothing

    end function

     

    I think maybe your Firewall block the 'Content-Disposition' directive causes the problem.

     
    I suggest you try the following approach:
     
    Replace the downloadfile function as an empty function:
     
    function downloadfile(file)

       

    end function

     
    And test it on your server . It works, that will prove it's a firewall issue.
     
    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

  •  06-14-2004, 10:06 PM 1019 in reply to 1004

    Re: Firewall Issue

    Jim,

     
    The "downloadable files" and "imagegallery" follow the same code path. The only difference is :  "downloadable files" allow you to view and download Files.
     
    To handle the download, we use the following fuctions:
     
     

    function downloadfile(file)

        dim objFSO,objFile,objStream

        Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

        Set objFile = objFSO.GetFile(file)

        dim name, size

        name = objFile.Name

        size = objFile.Size

        Set objFile = Nothing

        Set objFSO = Nothing

        Response.Clear

        Response.AddHeader "Content-Disposition", "attachment; filename=" & name

        Response.AddHeader "Content-Length", size

        Response.ContentType = "application/octet-stream"

        Set objStream = Server.CreateObject("ADODB.Stream")

        objStream.Open

        objStream.Type = 1

        Response.CharSet = "UTF-8"

        objStream.LoadFromFile(file)

        Response.BinaryWrite(objStream.Read)

        objStream.Close

        Set objStream = nothing

    end function

     

    I think maybe your Firewall block the 'Content-Disposition' directive causes the problem.

     
    I suggest you try the following approach:
     
    Replace the downloadfile function as an empty function:
     
    function downloadfile(file)

       

    end function

     
    And test it on your server . If it works, that will prove it's a firewall issue.
     
    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

  •  06-28-2004, 11:07 PM 1123 in reply to 1019

    Re: Firewall Issue

    Hello Adam,

        I tried commenting out the code to create an "empty" download function (in the browse_Document.asp page) but I still see the same behavior. I highlight some text, click on "downloadable files" button, after waiting several minutes I get a blank pop-up window that says in the title bar " - - Web Dialog " I have also noticed that the icon does not appear, even in the editor here. I have the same issues with trying to use the feature here also.

View as RSS news feed in XML