Support » Plugin: wp-FileManager » HTML5 support

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter thpani

    (@thpani)

    proposed patch:

    --- incl/upload.inc.php.old	2012-10-23 15:51:11.000000000 +0200
    +++ incl/upload.inc.php	2012-10-23 16:51:40.000000000 +0200
    @@ -12,7 +12,7 @@
       print $StrUploadFailPost;
      else
      {
    -  for($i=0;$i<=3;$i++)
    +  for($i=0;$i<count($_FILES['userfile']['tmp_name']);$i++)
       {
        $_FILES['userfile']['name'][$i] = stripslashes($_FILES['userfile']['name'][$i]);
     if (@move_uploaded_file($_FILES['userfile']['tmp_name'][$i], realpath($home_directory.$wp_fileman_path)."/".$_FILES['userfile']['name'][$i])) {
    @@ -45,8 +45,10 @@
     $max_post = (int)(ini_get('post_max_size'));
     $memory_limit = (int)(ini_get('memory_limit'));
     $upload_mb = min($max_upload, $max_post, $memory_limit);
    +$max_files = (int)(ini_get('max_file_uploads'));
     //	print "MAX UPload : $max_upload MB, MAX POST : $max_post MB, MEM LIMIT : $memory_limit MB";
     print "<br /><b>&nbsp;&nbsp;Maximum File Size Allowed : $upload_mb MB</b>";
    +print "<br /><b>&nbsp;&nbsp;Maximum Number of Files Allowed : $max_files</b>";
     // FIXME : add link to howto on how to change the upload size.
         print "<center><br />";
    
    @@ -55,7 +57,7 @@
         print "<form action='$base_url&output=upload&upload=true' method='post' enctype='multipart/form-data'>";
    
         print "<table class='upload'>";
    -     print "<tr><td>$StrFirstFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
    +     print "<tr><td>$StrFirstFile</td><td><input type='file' name='userfile[]' size=30 multiple="multiple"></td></tr>";
          print "<tr><td>$StrSecondFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
          print "<tr><td>$StrThirdFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
          print "<tr><td>$StrFourthFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";

    That would be a nice fix indeed.
    Does anyone have any idea whether this plugin is still supported or being redesigned in some way at all?

    It’s still the number 1 result in WordPress itself, when searching the Plugin directory on ‘filemanager’ and imo it does exactly what a lot of webmasters and devs expect from such a plugin.

    Plugin Author anantshri

    (@anantshri)

    Hi thpani,

    fix merged in the code.

    download 1.4.0

    acknoledgement added in readme.txt

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML5 support’ is closed to new replies.