WordPress.org

Forums

wp-FileManager
[resolved] HTML5 support (4 posts)

  1. thpani
    Member
    Posted 2 years ago #

    Please add support for the HTML5 multiple file input feature.

    http://wordpress.org/extend/plugins/wp-filemanager/

  2. thpani
    Member
    Posted 2 years ago #

    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>";
  3. Noël N
    Member
    Posted 2 years ago #

    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.

  4. anantshri
    Member
    Plugin Author

    Posted 2 years ago #

    Hi thpani,

    fix merged in the code.

    download 1.4.0

    acknoledgement added in readme.txt

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • wp-FileManager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.