What until loaded before showing Select Multiple Files button

Last post 07-09-2012, 12:05 PM by therealmagicrat. 3 replies.
Sort Posts: Previous Next
  •  06-29-2012, 10:20 AM 74047

    What until loaded before showing Select Multiple Files button

    I'm finding that users can click the Select Multiple Files button before phpfileuploader has completely loaded. The result is that either the file browser is not opened or it is opened but you can only select single files.
     
    How can I fix this?
    Thanks
  •  06-29-2012, 1:10 PM 74055 in reply to 74047

    Re: What until loaded before showing Select Multiple Files button

    Hi benners,
     
    You can hide the control before it load complete.  Like the example below
     
    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.             <div style=" visibility:hidden" id="div1">  
    14.                 <?php                  
    15.                     $uploader=new PhpUploader();  
    16.                     $uploader->MaxSizeKB=10240;  
    17.                     $uploader->Name="myuploader";  
    18.                     $uploader->InsertText="Select multiple files (Max 10M)";  
    19.                     $uploader->AllowedFileExtensions="*.jpg,*.png,*.gif,*.txt,*.zip,*.rar";    
    20.                     $uploader->MultipleFilesUpload=true;  
    21.                     $uploader->Render();  
    22.   
    23.             ?>  
    24.   
    25.             </form>  
    26. <div>  
    27.                   
    28.     </div>  
    29. </body>  
    30. </html>  
    31. <script>  
    32.     function CuteWebUI_AjaxUploader_OnInitialize() {  
    33.         var div1 = document.getElementById("div1");  
    34.         div1.style.visibility="";  
    35.     }  
    36. </script>  
    Regards,
     
    Ken 
  •  06-30-2012, 2:14 AM 74058 in reply to 74055

    Re: What until loaded before showing Select Multiple Files button

    Perfect. Thanks!
  •  07-09-2012, 12:05 PM 74097 in reply to 74058

    Re: What until loaded before showing Select Multiple Files button

    I had the same issue.  this worked for me, too. 
     
    Thank you! 

    - Rat
View as RSS news feed in XML