Server side exception: failed to upload xxxx.zip - session expired ...

Last post 10-29-2010, 11:20 AM by Eric. 6 replies.
Sort Posts: Previous Next
  •  08-27-2010, 2:15 PM 63701

    Server side exception: failed to upload xxxx.zip - session expired ...

    We are evaluating this component prior to purchase and have managed to inject the required phpfileuploader code into the existing standard form:
        <tr>
            <td>Zip Archive File Location 1:</td>
            <td>
                {php}
                    $uploader=new PhpUploader();  
                    $uploader->Name="myuploader";   
                    $uploader->Render();
                {/php}
            </td>
        </tr>
    (Happens to be within a smarty template)
    When the upload gets to 100%, the message is displayed in an alert() per the subject of the post and I imagine therefore that our back-end code will not execute.
     Can anyone please explain the likely reasons for this message so that we can either tackle it ourselves, or escalate it to the authors of the third-party library we are modifying?
     
    Best regards,
     
    RoyG
  •  08-30-2010, 10:08 AM 63723 in reply to 63701

    Re: Server side exception: failed to upload xxxx.zip - session expired ...

    Dear RoyG,
     
    that error means the cookie is missing for unknown reason. maybe because timeout.
    If you run the following example, does this issue happen to you?
    <?php require_once "phpuploader/include_phpuploader.php" ?>
    <?php session_start(); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
     <title>PHP Upload - Simple Upload with Progress</title>
    </head>
    <body>
     <div class="demo">      
      <?php
       $uploader=new PhpUploader();   
       $uploader->MultipleFilesUpload=false;
       $uploader->InsertText="Upload File"; 
       $uploader->Render();
      ?>
     </div>
    </body>
    </html>
    Thanks for asking
     
  •  08-31-2010, 4:58 AM 63746 in reply to 63723

    Re: Server side exception: failed to upload xxxx.zip - session expired ...

    Thanks - that test code is fine.
     
    Would you suggest that the code which receives the file (the form handler) is failing to get your cookie?
     
    RoyG
  •  08-31-2010, 8:12 AM 63751 in reply to 63746

    Re: Server side exception: failed to upload xxxx.zip - session expired ...

    Dear roygg,
     
    Can you extract your own code and create one test page which can reproduce this issue? Please send its url to [email protected] , we need more test about this issue.
     
    Thanks for asking
  •  09-01-2010, 3:39 AM 63780 in reply to 63751

    Re: Server side exception: failed to upload xxxx.zip - session expired ...

    Hi Eric,
     
    I certainly could do that, but my guess is that extracted code will work perfectly. Which is both a good thing and a bad thing!
     
    Could I instead ask that we keep the issue open so that if I can work around the existing back-end code to remove the problem we can close it later, or else continue with it once I understand any complexities with the current back-end?
     
    Cheers,
     
    RoyG
  •  10-29-2010, 10:54 AM 64795 in reply to 63723

    Re: Server side exception: failed to upload xxxx.zip - session expired ...

    i tryed your given code but i am still getting error . see error screen print.
     
     
     

    morty
  •  10-29-2010, 11:20 AM 64798 in reply to 64795

    Re: Server side exception: failed to upload xxxx.zip - session expired ...

    Dear  morty,
     
    Please change temporary directory and test it again, you need update temporary directory path to your actual one:       
     <?php
               $uploader=new PhpUploader();
              $uploader->TempDirectory="/home/public_html/ce6.7/eric1";
              
               $uploader->Render();
               ?>
     
    Thank you for asking
View as RSS news feed in XML