Clicking on File upload button does nothing

Last post 02-23-2013, 1:33 AM by pickledham. 2 replies.
Sort Posts: Previous Next
  •  02-22-2013, 1:45 AM 76905

    Clicking on File upload button does nothing

    I'm new to PHP File Uploader and have downloaded the trial to try it out. copied  all files in the archive to a folder called PHPfileuploader.

     

    clicking on the included demo.htm brings up the menu. selecting any of the demos displays the File Upload button and does nothing else.  is there something I'm missing?

     

    Demo menu is here --  http://bandit-radio.com/phpfileuploader/demo.htm    

    Simple file upload here -- http://bandit-radio.com/phpfileuploader/form-simple-upload.php

     

    I changed part of the file form-simple-upload.php to this

                 <?php
                      $uploader=new PhpUploader();
                      
                      $uploader->MultipleFilesUpload=false;
                      $uploader->InsertText="Upload File (Max 10M)";
                      
                      $uploader->MaxSizeKB=1024000;      
                      $uploader->AllowedFileExtensions="jpeg,jpg,gif,png,zip";
                      $uploader->TempDirectory="tmp";
                      
                      //Where'd the files go?
                      $uploader->SaveDirectory="savefiles";
                      
                      $uploader->Render();
                ?>


    created a folder 'tmp'          in http://bandit-radio.com/phpfileuploader/

    created a folder 'savesfiles' in http://bandit-radio.com/phpfileuploader/ 

     I'm running apache server with PHP 5.2.17  using godaddy for a hosting provider

     

    Do I need to modify the PHP5.ini file?  Does the .htaccess file need to be modified?

     

     

    thank you for your time for getting me back on track

     

    Daryl

    djberry (at) hiwaay (dot) net

     

     

     

     

     

  •  02-22-2013, 12:14 PM 76908 in reply to 76905

    Re: Clicking on File upload button does nothing

    Hi,

     

    The uploader get the wrong resource file path on your site, please try the way below, it will fix your issue.

     

    1. Open file \phpuploader\include_phpuploader.php

    2. Find section below


    $cd=dirname($this->GetWebPath(__FILE__));


    3. Change it to

    $cd=dirname($_SERVER['SCRIPT_NAME']).'/phpuploader';

     

    If you still can not make it work, please set up ftp access for us and send the info to Kenneth@CuteSoft.net, I will check the code for you directly.

     

    Regards,

     

    Ken


     

  •  02-23-2013, 1:33 AM 76910 in reply to 76908

    Re: Clicking on File upload button does nothing

    Thank you very much! I made the changes you mentioned an it works like a champ.

    I'll be purchasing the Small Business License in a few days.  Execellent tech support

     

     

    Daryl

     

View as RSS news feed in XML