Problems running demos

Last post 09-02-2010, 9:11 AM by Eric. 3 replies.
Sort Posts: Previous Next
  •  08-24-2010, 10:40 AM 63587

    Problems running demos

    Hello,
     
    I've had real problems just running the simple demo,
     
    <form id="form1" method="POST">
        <?php
        
            $uploader=new PhpUploader();
         
            $uploader->Name="myuploader";        
            $uploader->Render();
            
        ?>
        </form>
     
    Initially there was a problem with the file path so in 
    include_phpuploader.php I changed,
     
             //$cd=dirname($this->GetWebPath(__FILE__));
            $cd = "phpuploader";
     
    then in my demo I got this, which suggests the script file is not being recognised.
     
    <script src="phpuploader/ajaxuploaderresource.php?type=script" type="text/javascript">
    1The resource from this URL is not text: http://www.gapblog.com/phpuploader/ajaxuploaderresource.php?type=script
    </script>
    <span style="display: none;"/>
    <button style="display: none;">Cancel upload</button>
    <img id="myuploader_Loader_unique" contextvalue="d7dd66df74e90c17db2cf3154486077a" onerror="this.onload()" onload="this.style.display="none" ; CuteWebUI_AjaxUploader_Initialize(this.id);" borderstyle="border-style:solid;border-width:1px;border-style:#444444;" barstyle="Continuous" infostyle="padding-left:3px;font:normal 12px Tahoma;" barheight="20" panelwidth="360" numfilesshowcancelall="2" showprogressinfo="1" showprogressbar="1" uploadtype="Auto" uploadcursor="Auto" uploadingmsg="Uploading.." cancelallmsg="Cancel all Uploads" canceluploadmsg="Cancel upload" maxhttpsizekb="2048" maxpartialsizekb="102400" flashloadmode="1" uploadurl="phpuploader/ajaxuploaderhandler.php" resourcehandler="phpuploader/ajaxuploaderresource.php" resourcedirectory="phpuploader/resources" insertbuttonid="myuploaderButton" src="phpuploader/ajaxuploaderresource.php?type=file&file=continuous.gif" serverlang="PHP" uploadmodulenotinstall="1" namespace="CuteWebUI" uniqueid="myuploader" style="display: none;"/>
     
     
    Any suggestions?
     
     
    Regards,
    Rupert
     
  •  08-24-2010, 12:09 PM 63590 in reply to 63587

    Re: Problems running demos

    $cd = "phpuploader";  Please change $cd to the actual path value of your host, if you need help, please send your ftp access to eric@cutesoft.net , we can check it for u.
     
    Regards,
    Eric
  •  09-01-2010, 4:12 PM 63796 in reply to 63590

    Re: Problems running demos

    Hi,
     
    Eric:
    $cd = "phpuploader";  Please change $cd to the actual path value of your host, if you need help, please send your ftp access to eric@cutesoft.net , we can check it for u.
     
     
    Thanks for your response, just realised there'd been a reply. Do you mean the host url and "phpuploader" as in,
     
            $cd = "http://www.voteinusa.com/phpuploader";
    still getting the same problem.
     
    See demos at,
     
    http://www.voteinusa.com/demo1.php
    http://www.voteinusa.com/demo2.php
     
    Any help appreciated.
     
    Rupert
  •  09-02-2010, 9:11 AM 63812 in reply to 63796

    Re: Problems running demos

    Dear ruperty,
    I tested your two examples:
    the first one works fine, the second throw error,
     
    You can set another temporary directory and try it again:
     <?php
       $uploader=new PhpUploader();
       
       $uploader->MultipleFilesUpload=false;
       $uploader->InsertText="Upload File";
       $uploader->AllowedFileExtensions="jpeg,jpg,gif,png,zip";
       $uploader->TempDirectory="tempdir";
       //Where'd the files go?
       //$uploader->SaveDirectory="/myfolder";
       
       $uploader->Render();
      ?> 
     
    Thanks for asking
View as RSS news feed in XML