Upload progress issue - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Upload progress issue

fjlffjlf Posts: 3Member
Hi, I have the following problem.
I'm trying to upload a file to my server and track its progress.
I'm using two pages, the one that actually uploads the file and another one to get the progress of the upload.
My problem is that the second page keeps loading until the first one ends uploading the file.
Does anyone know how to work around this problem ?
Thanks in advance.

Comments

  • FlakesFlakes Posts: 642Member
    : Hi, I have the following problem.
    : I'm trying to upload a file to my server and track its progress.
    : I'm using two pages, the one that actually uploads the file and
    : another one to get the progress of the upload.
    : My problem is that the second page keeps loading until the first one
    : ends uploading the file.
    : Does anyone know how to work around this problem ?
    : Thanks in advance.
    :


    show some code, and we could take a look
  • fjlffjlf Posts: 3Member
    : : Hi, I have the following problem.
    : : I'm trying to upload a file to my server and track its progress.
    : : I'm using two pages, the one that actually uploads the file and
    : : another one to get the progress of the upload.
    : : My problem is that the second page keeps loading until the first one
    : : ends uploading the file.
    : : Does anyone know how to work around this problem ?
    : : Thanks in advance.
    : :
    :
    :
    : show some code, and we could take a look

    Hi!!! Thanks for your reply.
    I have two pages, the one that uploads the file (upload.asp) looks something like this

    [color=Green]
    function ShowProgress()
    {
    window.open("Prog.asp");
    document.forms[0].submit();
    }






    [/color]

    On server side, it uses ABCUpload to manage the files.
    And the other page (prog.asp) looks like this:

    [color=Green] Response.CacheControl = "no-cache"
    Dim theProgress, theField
    Set theProgress = Server.CreateObject("ABCUpload4.XProgress")
    theProgress.ID = Session.SessionID
    Response.Write(CStr(theProgress.PercentDone))[/color]

    When the window pops up, prog.asp keeps loading until upload.asp finishes. When its done, the data is shown perfectly.
    I was told this happened whenever you have asp debugging enabled on IIS, due to the fact that it allows IIS to process only one page at a time per session. However I checked this feature and it's disabled.
    Thanks.
  • fjlffjlf Posts: 3Member
    : : : Hi, I have the following problem.
    : : : I'm trying to upload a file to my server and track its progress.
    : : : I'm using two pages, the one that actually uploads the file and
    : : : another one to get the progress of the upload.
    : : : My problem is that the second page keeps loading until the first one
    : : : ends uploading the file.
    : : : Does anyone know how to work around this problem ?
    : : : Thanks in advance.
    : : :
    : :
    : :
    : : show some code, and we could take a look
    :
    : Hi!!! Thanks for your reply.
    : I have two pages, the one that uploads the file (upload.asp) looks
    : something like this
    :
    : [color=Green]
    : function ShowProgress()
    : {
    : window.open("Prog.asp");
    : document.forms[0].submit();
    : }
    :
    :
    :

    :

    : [/color]
    :
    : On server side, it uses ABCUpload to manage the files.
    : And the other page (prog.asp) looks like this:
    :
    : [color=Green] Response.CacheControl = "no-cache"
    : Dim theProgress, theField
    : Set theProgress = Server.CreateObject("ABCUpload4.XProgress")
    : theProgress.ID = Session.SessionID
    : Response.Write(CStr(theProgress.PercentDone))[/color]
    :
    : When the window pops up, prog.asp keeps loading until upload.asp
    : finishes. When its done, the data is shown perfectly.
    : I was told this happened whenever you have asp debugging enabled on
    : IIS, due to the fact that it allows IIS to process only one page at
    : a time per session. However I checked this feature and it's disabled.
    : Thanks.
    :

    Hi!! I figured out the solution. I used ASP.NET in the progress page instead of ASP which has this property "<%@EnableSessionState=False%>". This allows you to execute scripts without session state. Now I changed a few things. Instead of getting the ID from the session I send it from the other page using get parameters.
    Thanks.
Sign In or Register to comment.