Ignore:
Timestamp:
02/06/18 08:37:50 (17 months ago)
Author:
gogo
Message:

Updates to MootoolsFileManager? - most importantly removal of Flash dependancy, now uses HTML5 file uploads.

Also now updated the default MooTools? to 1.6.0 - you can of course load your own MooTools? first (before Xinha), anything down to about 1.3 works I think, if you load yours then it will be used instead.

Other updates from https://github.com/sleemanj/mootools-filemanager included in this update are:

  • Remove space from allowed characters in filenames, they will be converted to _ on upload
  • Fix for a small (inconsequential) uppercase extension bug
  • Add some more php extensions to the "unsafe" list
  • Fix image resize on upload to be more space efficient
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/MootoolsFileManager/backend.php

    r1327 r1371  
    5353} 
    5454 
     55if(isset($_POST['encoded_data'])) 
     56{ 
     57  $D = json_decode(str_rot13($_POST['encoded_data'])); 
     58  foreach($D as $k => $v) { $_POST[$k]=$v; if(!isset($_REQUEST[$k])) $_REQUEST[$k] = $v; } 
     59} 
     60 
    5561function size_to_bytes($s) 
    5662{ 
     
    102108    { 
    103109      // Session time out 
    104       echo '{"status" : 0, "error": "No images_dir, most likely your session has timed out."}';exit; 
     110      echo '{"status" : 0, "error": "No images_dir, most likely your session has timed out, or the file upload was too large for this server to handle, try refreshing your browser, or uploading a smaller file if it still does not work.", "data": ' . json_encode($_REQUEST).'}';exit; 
    105111    } 
    106112     
Note: See TracChangeset for help on using the changeset viewer.