Problems with installation of File Uploader. Error message, no dialog showing, upload button does nothing

Last post 12-19-2012, 11:48 PM by anthonygore. 6 replies.
Sort Posts: Previous Next
  •  12-13-2012, 9:42 PM 75459

    Problems with installation of File Uploader. Error message, no dialog showing, upload button does nothing

    Hello,

     

    I'm trying to install the evaluation version of PHP File Uploader.

     

    Here's the issue I'm having: I've placed all the code on my page but it's displaying as follows:

     

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/fre24916/public_html/webpage.php:224) in /home/fre24916/public_html/phpuploader/include_phpuploader.php on line 844


    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/fre24916/public_html/webpage.php:224) in /home/fre24916/public_html/phpuploader/include_phpuploader.php on line 844

    The upload button is displayed but does nothing when I click it.

     

    Any ideas what's going wrong? My PHP version is 5.2.17

  •  12-14-2012, 9:13 AM 75462 in reply to 75459

    Re: Problems with installation of File Uploader. Error message, no dialog showing, upload button does nothing

    Hi anthonygore,

     

    Do you get the same problem with the example page below?

     

    If yes, can you use echo phpinfo() to output all php settings? So we can check the settings for you.

     

    1. <?php require_once "phpuploader/include_phpuploader.php" ?> 
    2. <?php session_start(); ?> 
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
    4. <html xmlns="http://www.w3.org/1999/xhtml"
    5.   <head> 
    6.     <title> 
    7.       example 
    8.     </title> 
    9.   </head> 
    10.   <body> 
    11.  
    12.     <form id="form1" method="POST"
    13.            <?php              
    14.                     $uploader=new PhpUploader(); 
    15.                     $uploader->MaxSizeKB=10240; 
    16.                     $uploader->Name="myuploader"
    17.                     $uploader->Render(); 
    18.             ?>  
    19.  
    20.     </form> 
    21.  
    22.   </body> 
    23. </html> 
     

    Regards,

     

    Ken

  •  12-14-2012, 6:16 PM 75467 in reply to 75462

    Re: Problems with installation of File Uploader. Error message, no dialog showing, upload button does nothing

    Thanks for the fast reply.

     

    So when I used the code above I didn't get the error message, but the 'upload' button still doesn't work.

     

    However, I'd tried something else: I put the above code in a blank .php file and ran it on my host server and it appeared to work as it should. But, when I put the standard code in a blank file and ran it, it worked but I still got the error message displaying.

     

    I hope that makes sense..

     

    Here's the phpinfo output on my host http://www.freebizwebsite.com.au/phpinfo.php

  •  12-18-2012, 7:05 AM 75474 in reply to 75467

    Re: Problems with installation of File Uploader. Error message, no dialog showing, upload button does nothing

    Hi anthonygore,

     

    -----when I put the standard code in a blank file and ran it, it worked but I still got the error message displaying.

     

    Can you show me the full code of this file what you are testing?

     

    Regards,

     

    Ken

  •  12-18-2012, 8:13 AM 75477 in reply to 75474

    Re: Problems with installation of File Uploader. Error message, no dialog showing, upload button does nothing

    you can see it working here: http://www.freebizwebsite.com.au/uploadertest.php

     

    there doesn't appear to be any error message with that code right now...but it still doesn't work on my actual web page

     

     

     the code is:

     

     

    <?php

    require_once "phpuploader/include_phpuploader.php";

    session_start();


    //Gets the GUID of the file based on uploader name
    $fileguid=@$_POST["myuploader"];
    if($fileguid)
    {
        //get the uploaded file based on GUID
        $mvcfile=$uploader->GetUploadedFile($fileguid);
        if($mvcfile)
        {
            //Gets the name of the file.
            echo($mvcfile->FileName);
            //Gets the temp file path.
            echo($mvcfile->FilePath);
            //Gets the size of the file.
            echo($mvcfile->FileSize);

            //Copys the uploaded file to a new location.
            $mvcfile->CopyTo("/uploads");
            //Moves the uploaded file to a new location.
            $mvcfile->MoveTo("/uploads");
            //Deletes this instance.
            $mvcfile->Delete();
        }
    }

    //Step 2: Create Uploader object.
    $uploader=new PhpUploader();
    //Step 3: Set a unique name to Uploader
    $uploader->Name="myuploader";
    // specify the temporary file location using TempDirectory property
    $uploader->TempDirectory="/temp";
    // Specify the maximum allowed size of the file using MaxSizeKB property
    $uploader->MaxSizeKB=3000;
    //Step 4: Render Uploader
    $uploader->Render();

    ?>

  •  12-19-2012, 7:51 AM 75486 in reply to 75477

    Re: Problems with installation of File Uploader. Error message, no dialog showing, upload button does nothing

    Hi,

     

    Remove the code below, does it work? If allow, please set up ftp access for us, so we can check the code for you directly. you can send the info to Kenneth@CuteSoft.net

     

    session_start(); 

     

    Regards,

     

    Ken

  •  12-19-2012, 11:48 PM 75494 in reply to 75486

    Re: Problems with installation of File Uploader. Error message, no dialog showing, upload button does nothing

    Email sent

     

    Thanks

    Anthony

View as RSS news feed in XML