Progress bar stuck at 0%

Last post 03-21-2011, 12:40 PM by ryantee. 4 replies.
Sort Posts: Previous Next
  •  03-20-2011, 5:08 PM 66762

    Progress bar stuck at 0%

    Hi,
     
    I was testing out the trial version of php uploader and got it mostly set up, but when I try to upload an image the bar just gets stuck at 0% and nothing happens!  I double-checked server-side settings -- the chmod for both temp and save directories are at 777, and the server supports both php 5 and html file uploads.
    We're using an ecards system where the pages are built dynamically, so I'm not sure if that has anything to do with why it isn't working.  Any ideas?
     
    Ryan
     
    Test page:
     
    My code:
    <?
    session_start();
    include_once('inc/UIfunctions.php');
    include_once('config.php');
    $page = new pagebuilder;
    include_once('inc/setLang.php');

    $page->showHeader();
    require_once "inc/uploader/phpuploader/include_phpuploader.php";
    ?>
    Allowed file types: jpg/jpeg, gif, png
    2MB Max File Size
    <form id="uploadimage" method="post">
    <?php     
                    $uploader=new PhpUploader();    
                    $uploader->SaveDirectory="http://okmusic.me/ecards/images/uploadedimages";
                    $uploader->TempDirectory="http://okmusic.me/ecards/images/tempuploadimages";
                    $uploader->Name="useruploadedimage";
                    $uploader->MaxSizeKB=2048000;
                    $uploader->AllowedFileExtensions="jpg,jpeg,gif,png";
                    $uploader->Render();   
    ?>
    </form>   
    <?
    $page->showFooter();
    ?>
     
  •  03-21-2011, 2:37 AM 66768 in reply to 66762

    Re: Progress bar stuck at 0%

    Hi ryantee,
     
     
     1. remove the TempDirectory setting
     
    $uploader->TempDirectory="http://okmusic.me/ecards/images/tempuploadimages";
     
    2. Do not use  absolute path for SaveDirectory
     
      $uploader->SaveDirectory="http://okmusic.me/ecards/images/uploadedimages";
     
    Change it to(if uploadedimages at the root of your site)
     
     $uploader->SaveDirectory="uploadedimages";
     
    Regards,
     
    Ken
     
     
  •  03-21-2011, 11:37 AM 66774 in reply to 66768

    Re: Progress bar stuck at 0%

    Hey that worked!  Thanks.  Gonna try it out now...
  •  03-21-2011, 12:03 PM 66775 in reply to 66774

    Re: Progress bar stuck at 0%

    Say, I had a question -- is there something built into the program that triggers something after the upload is done?  Would like to set something up so that the user can hit the "next" button after they're done uploading the image.  I couldn't find it in the documentation. 
  •  03-21-2011, 12:40 PM 66777 in reply to 66775

    Re: Progress bar stuck at 0%

    Oh nevermind, found it.  Back to work now. :)
View as RSS news feed in XML