Very nice but…could be better
-
The plugin is great if you manage your own WordPress site and don’t have access to FTP. But it could be even better if there was a way to limit the directory tree the plugin has access to. In my case, I need to let my client upload files to a certain directory but I do not want them to be able to delete or modify core WP files. Maybe an options panel to set a root directory? At the very least, it would be nice if the plugin applied filters to the ‘path’ and ‘URL’ variables before launching the file manager. This would allow me to add filters in my functions.php to control the directory. I hate to modify someone else’s plugin so this could be a deal breaker for me.
Something like this simple change would be great!
$opts = array( 'debug' => true, 'roots' => array( array( 'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED) 'path' => apply_filters( 'file_manager_path', ABSPATH ), // path to files (REQUIRED) 'URL' => apply_filters( 'file_manager_url', site_url() ), // URL to files (REQUIRED) 'uploadDeny' => array(), // All Mimetypes not allowed to upload 'uploadAllow' => array('image', 'text/plain', 'codeclimate.yml'),// Mimetype <code>image</code> and <code>text/plain</code> allowed to upload 'uploadOrder' => array('deny', 'allow'), // allowed Mimetype <code>image</code> and <code>text/plain</code> only 'accessControl' => 'access' // disable and hide dot starting files (OPTIONAL) ) ) );
- The topic ‘Very nice but…could be better’ is closed to new replies.