blank page from phpumloader

Last post 03-16-2011, 3:47 PM by Eric. 1 replies.
Sort Posts: Previous Next
  •  03-16-2011, 6:38 AM 66685

    blank page from phpumloader

    Hello
    I am testing your phpuploader on a linux server and php 
    I have resolved the path issue and when I run the demo php uploader I get a blank page with  only a button that says 'upload files'
    The button has no action when clicked
    the html source is below
    I understand that this is a  free code but if  you could point me  toward a possible solution that would be great
    thank you
    ================================
    <body>   
    <button id='AjaxUploaderFilesButton' onclick='return false;'>Upload files</button><input type='hidden' id='AjaxUploaderFiles' name='AjaxUploaderFiles' autocomplete='off' /><script type='text/javascript' src='//phpuploader/ajaxuploaderresource.php?type=script'></script><img id='AjaxUploaderFiles_Loader' UniqueID='AjaxUploaderFiles' Namespace='CuteWebUI' UploadModuleNotInstall='1' ServerLang='PHP' src='//phpuploader/ajaxuploaderresource.php?type=file&amp;file=continuous.gif' InsertButtonID='AjaxUploaderFilesButton' ResourceDirectory='//phpuploader/resources' ResourceHandler='//phpuploader/ajaxuploaderresource.php' UploadUrl='//phpuploader/ajaxuploaderhandler.php' Extensions='jpeg,jpg,gif,png,zip' FlashLoadMode='1' MaxPartialSizeKB='102400' MaxHttpSizeKB='8192' CancelUploadMsg='Cancel upload' CancelAllMsg='Cancel all Uploads' UploadingMsg='Uploading..' UploadCursor='Auto' UploadType='Auto' ShowProgressBar='1' ShowProgressInfo='1' NumFilesShowCancelAll='2' PanelWidth='360' BarHeight='20' InfoStyle='padding-left:3px;font:normal 12px Tahoma;' BarStyle='Continuous' BorderStyle='border-style:solid;border-width:1px;border-style:#444444;' onload='this.style.display=&quot;none&quot; ; CuteWebUI_AjaxUploader_Initialize(this.id);' onerror='this.onload()' ContextValue='m92nrcbbm6c0mrpcn3h4daduk4' /></body>
     
    ===============================
  •  03-16-2011, 3:47 PM 66702 in reply to 66685

    Re: blank page from phpumloader

    Dear yvesbodson,
     
    Please refer to  the following example:
     
    <?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>Demo 1 - use SaveDirectory property</title>
    </head>
    <body>
     <div> 
    <hr/> 
     <?php
      $uploader=new PhpUploader();  
      $uploader->MultipleFilesUpload=true;
      $uploader->InsertText="Select multiple files (Max 1000M)";  
      $uploader->MaxSizeKB=1024000;
      $uploader->AllowedFileExtensions="*.jpg,*.png,*.gif,*.bmp,*.txt,*.zip,*.rar";  
      $uploader->SaveDirectory="savefiles";  
      // You can add property setting code here
      $uploader->FlashUploadMode="Partial";  
      $uploader->Render();  
     ?> 
     </div>  
     <script type='text/javascript'>
     function CuteWebUI_AjaxUploader_OnTaskComplete(task)
     {
      var div=document.createElement("DIV");
      var link=document.createElement("A");
      link.setAttribute("href","savefiles/"+task.FileName);
      link.innerHTML="You have uploaded file : savefiles/"+task.FileName;
      link.target="_blank";
      div.appendChild(link);
      document.body.appendChild(div);
     }
     </script> 
    </body>
    </html>
     
    Thank you for asking
View as RSS news feed in XML