ezFilemanager v1
- Better security
- All user inputs are sanitized extensively, both from the client and server site.
- Much easier configuration/instalation
- Extensive use of jQuery
- Upload multiple files
- Create multiple folders
- If a folder/file name exists, it will be appended by a number
- Recursively delete directories/files
- Preview/Download files
- Copy/Paste files between directories
- Added option for multiuser (Implemention is up to you, or if you need help, contact me)
Eazy file manager platform for TinyMCE or stand-alone file management utility.
Today 2009-02-17 the final v1.0 has been released.
- It is an online file management utility
- It can be installed as stand-alone file management utility
- Integrates with TinyMCE as Plugin.
- Integrates as a custom file browser within TinyMCE for image, media and link popup.
- Browse directories.
- Display file information such as type, size and dimensions (images only).
- Preview files (iframe zoom + for iE only, we dont need zoom for FF)
- Download files
- Rename files directories
- Delete files (single/multiple).
- Delete Directories (even non empty).
- Upload files (based on type permission for image/media/links).
- Upload dynamicaly multiple files simultaneously
- Rename files before uploading
- Enable/Disable file/directory delete
- Enable/Disable file/directory rename
- Enable/Disable file upload
- Check if directory is writable
- Create Directories.
- Restrict max upload size for image/media/links.
- Restrict characters to use for uploaded files and new Directories.
- Multilingual.(Translated to English,French,German,Greek)
- Security to block non existant folders and back_browsing (../../etc).
- Some other user definable settings, see includes/config.inc.php.
- Almost every single function is fully commented and dated
ezFilemanger v0.8a has been used/tested extensively and the only bug reported was a JavaScript error which prevented uploading files with more than 3 characters extension, thus today 2009-02-17 the final v1.0 has been released.
For those using v0.8a the only file modified is the the includes/upload.inc.php and new German translation (thanks Joachim Schneider)
Download ezFilemanager+TinyMCE v3.2.5 Extract the tinymce-ezfilemanager.zip file and put the tinymce directory in your root folder, naviagte to www.your_url/tinymce/examples and test ezFilemanager
A common missconseption is that you can install images/links from the ezFilemanager button in the TinyMCE toolbar.
In order to install images/links you must install the advimg plugin as well and then you will see a small icon next to the Image URL, which when clicked will open the ezFilemanager
Installation instructions are included in the download, you can allso read details instructions here
Comments 10
Hi,
I'm having a problem and I'm not sure why, in the file manager I have created folders under images, everything was fine a couple of days ago now I try to make a new folder and I'm getting wrong file path error. This only happens serveral folders down.
Example:
images/"new_folder" works
but,
images/folder1/sub-folder/sub-sub-folder1
will not work. Funny because sub-sub-folder worked 2 days ago now I'm tryin the add sub-sub-folder2 and I get worng file path error.
the form source shows:
input type='hidden' name='upload_path' id='upload_path' value='h:/server2go/htdocs/aoshore/images/reviews/2600/'
and
window.location="http://192.168.1.102/aoshore/admin/css_js/tiny_mce/plugins/ezfilemanager/ezfilemanager.php?type=image&thedir=reviews/2600/&sa=1"
which are my exact locations on my develpment server, like I said this did work, now it will not? any ideas?
Actually I've checked and it won't et me create a 2nd sub folders under images
example:
images/folder1/sub-folder
will not work?
Is ths a limitation of the script?
TIA
Probably the problem is your define('WN_PATH','h:/server2go/')
and define('HACK_PATH_CHAR','/[;\\\\\\.&,h:><]/i')
If in your HACK_PATH you have : either remove it or fix your WN_PATH, i.e remove h:, you dont need it
Hi, have test this plugin... have setup and now work fine but... when use EzFileManager cannot insert the image after upload/rename ?
Thanks.
tinyMCE.init({
mode : 'textareas',
theme : 'advanced',
plugins : "ezfilemanager,advimg.......",
theme_advanced_buttons3_add_before : 'separator,ezfilemanager',
relative_urls : false,
............
});
And also dont forget the file_browser_callback,
Hello there
This is a nice plugin but it has quite a few problems - php related
They are due to the fact that you created this plugin ignoring php notices - if you set php error reporting to E_ALL you will see them all (you probably have error reporting set to E_ALL & ~E_NOTICE & ~E_STRICT)
Among these notices there are undefined variables, bad use of constants and other things - i can make you a list with everything I've changed.
Any fixes/enhancements are more than welcome.
Please either send me the list of changes or the whole of ezFilemanager with your changes and I will include it with my next release.
In-fact I would appreciate it if anybody else has any chnages/enhancemets to let me know.
I have used it in the filbrowser callback in tniymce, but i get an error:
Error Wrong Path [galleri] although it is here my images are stored.
Theres is also a 'return to previous folder icon' and when i click it I get an empty gray window with the following text in the top: Select Directory or Browse
allowed characters in your path or modify the HACK_PATH_CHAR
The default is
define('HACK_PATH_CHAR','/[;\\\\\\.&,:><]/i')
This means you cannot have ;,:,\,,>,<,.,&
So if you have c:// in your path it will be rejected.
I'm getting error message: Error Wrong Path [images] I've tried everything here's my config code.
define('LANG','en');
define('CHECK_IF_WRITABLE',true); //do checks to see if dir is writable (true/false)
define('ENABLE_RENAME',true); //allow file/dir renaming (true/false)
define('ENABLE_DELETE',true); //allow file/dir deleting (true/false)
define('ENABLE_NEW_DIR',true); //allow new dir creation (true/false)
define('MAX_SIM_UPLOAD','3'); //Max number of simultaneous uploads, 0 disables upload
define('VALID_DIR_CHAR','[^0-9a-zA-Z_-]'); //makedir allow alphanumeric(upper/lower) and _-
define('VALID_FILE_CHAR','[^0-9a-zA-Z_.-]');//upload allow alphanumeric(upper/lower) and ._-
define('HACK_PATH_CHAR','/[;\\\\\\.&,>,<,.,& characters in path/upload
define('IMG_EXT','[\'jpeg\', \'jpg\', \'gif\', \'png\']');// Used for javascript validation
define('DATE_FORMAT','d/m/Y H:i');
define('FILE_CHAR_TO_SHOW','25');//filename will be truncated to 25chars if it's longer
//define("WN_URL","http://www.yourdomain.com/");//your domain url
define("WN_URL","http://mysite/");//your domain url
define('WN_PATH','http://mysite');//domain root absolute path
define("IMG_PATH",WN_PATH."/images/");//Image dir url
define('IMG_URL',WN_URL.'/images/');//Image dir absolute path
define('FILE_PATH',WN_PATH.'docs/');//File dir url
define('FILE_URL',WN_URL.'docs/');//File dir absolute path
define('MEDIA_PATH',WN_PATH.'media/');//Media dir url
define('MEDIA_URL',WN_URL.'media/');//Media dir absolute path
Any help will be accepted, I'm using Xammp
As you are using xampp it should be define('WN_PATH','/xampp/htdocs/your_directory/?');
also your define('HACK_PATH_CHAR','/[;\\\\\\.&,>,<,.,& characters in path/upload is wrong
the default is define('HACK_PATH_CHAR','/[;\\\\\\.&,:><]/i');
See my post above to Morten 23rd April 2009
Also you should add tailng slash (/) to WN_URL & WN_PATH and remove the starting slash from your IMG_URL & IMG_PATH
Problem solved, thx alot ;-)
Hi, thanks for such a nice plugin.
I am having issues, it is setup fine with Magento/Tiny_MCE, but when I try to insert the doc, it gives me "h = document.body.innerHTML;" within the popup of ezfilemanager. and in the tiny_mce editor window it says "win is undefined".
Could you please tell, what is wrong here?
http://img36.imageshack.us/img36/1364/77221918.jpg
config.inc.php:
define('LANG','en');
define('CHECK_IF_WRITABLE',true); //do checks to see if dir is writable (true/false)
define('ENABLE_RENAME',true); //allow file/dir renaming (true/false)
define('ENABLE_DELETE',true); //allow file/dir deleting (true/false)
define('ENABLE_NEW_DIR',true); //allow new dir creation (true/false)
define('MAX_SIM_UPLOAD','3'); //Max number of simultaneous uploads, 0 disables upload
define('VALID_DIR_CHAR','[^0-9a-zA-Z_-]'); //makedir allow alphanumeric(upper/lower) and _-
define('VALID_FILE_CHAR','[^0-9a-zA-Z_.-]');//upload allow alphanumeric(upper/lower) and ._-
define('HACK_PATH_CHAR','/[;\\\\\\.&,>,<,.,& characters in path/upload
define('IMG_EXT','[\'jpeg\', \'jpg\', \'gif\', \'png\']');// Used for javascript validation
define('DATE_FORMAT','d/m/Y H:i');
define('FILE_CHAR_TO_SHOW','25');//filename will be truncated to 25chars if it's longer
define("WN_URL","http://www.localhost.com/magento2/");//your domain url
define('WN_PATH','F:\apache2triad\htdocs\magento2\\');//domain root absolute path
define("IMG_PATH",WN_PATH.'uploads\media\\');//Image dir url
define('IMG_URL',WN_URL.'uploads/media/');//Image dir absolute path
define('FILE_PATH',WN_PATH.'uploads\docs\\');//File dir url
define('FILE_URL',WN_URL.'uploads/docs/');//File dir absolute path
define('MEDIA_PATH',WN_PATH.'uploads\media\\');//Media dir url
define('MEDIA_URL',WN_URL.'uploads/media/');//Media dir absolute path
define("STAND_ALONE",$_GET['sa']);
define("THE_TYPE",'file');//$_GET['type']);
define('CHANGE_URL',$ezfilemanager['url'][THE_TYPE]);
define('CHANGE_PATH',$ezfilemanager['path'][THE_TYPE]);
define('WORKING_PATH',$ezfilemanager['path'][THE_TYPE].$_GET['thedir']);
if (!defined('LANG'))
define('LANG','en');
Unfortunately the image was too small, I could not read the Tiny_MCE config.
Please send me your Tiny_mce config..
Also you have some errors in the ez config
e.g.
define('WN_PATH','F:\apache2triad\htdocs\magento2\\');//domain root absolute path
remove F: (it will give invalid path error)
define('WN_PATH','/apache2triad/htdocs/magento2/');
Also although the script should work with forward slashes, better use backslashes








Hello,
It is possible to select one file in SA mode and to retrieve the URL in a form field ?
I tried, but in SA mode, the select button isn't available.
Regards,
/js/ezfilemanager.js
The variable that stores the URL is the theurl
Open the file and add '+theurl+' at the end of line 15
function selectURL(theurl)
{
clear_rename();
document.previewform.selected_url.value = theurl;
try {
document.getElementById('go').style.visibility = 'visible';
} catch (e) { }
DownloadContainer=document.getElementById('do_download');
DownloadContainer.style.visibility = 'visible';
DownloadContainer.innerHTML = '<a href=\"'+theurl+'\" target=\"_blank\"><img src=\"img/downloads.gif\" width=\"22\" height=\"22\" alt=\"\">'+theurl+'</a>';
}
//The part in red is the new addition, now you should see the url next to the download icon
you can either copy it manually or add a javascript (if you are using the ezFM as a popup add a javascript on click event and send the var to the windows.opener...) let me know if you need more help