If you’re using ExpressionEngine (EE) with a WYSIWYG editor, chances are you’re using either TinyMCE or FCKEditor. I myself use TinyMCE and it seems like a lot of people prefer it to FCKEditor, but for one thing – it doesn’t have good image and file management capabilties built in by default.
So in this article, I’m going to look at some options available via plugins to give your clients control over their own images and other file uploads. The ones that I’ve come across include:
- iBrowser (free)
- TinyFCK (free)
- Kae’s File Manager (free)
- TinyMCE Ajax File Manager (free)
- TinyBrowser (free)
- SMExplorer/SMImage (commercial)
- MCFileManager/MCImageManager (commercial)
iBrowser
iBrowser is a free file management plugin and it was the first I came across when I began using TinyMCE and while it doesn’t do a bad job, its interface is a bit confusing and some don’t find it very intuitive. Instructions for its integration with ExpressionEngine can be found on the wiki, but basically, after downloading and unzipping the plugin, upload it to TinyMCE’s plugins folder, set the path to your images folder in the config file and add ibrowser to the plugins and buttons lists of your TinyMCE settings which you’ll find under the Extensions tab if you’re using either EE’s TinyMCE first-party plugin or the more flexible version from Leevi Graham (it enables you to choose which textareas to assign as WYSIWYG editors; the EE version doesn’t).
TinyFCK
As mentioned in the introduction, the main rival to TinyMCE is FCKEditor which comes with a good file manager already built in. So some enterprising souls decided they would take the only thing missing from TinyMCE – a free file management plugin – from FCKEditor and integrate the two. The result is TinyFCK.
To get this to work in ExpressionEngine, you need to take the example code from the TinyFCK home page and add it to the script that initalises TinyMCE. I use the LG-TinyMCE extension on my sites, so I did this by simply adding the code to ext.lg_tinymce.php just after:
// render the tinymce init
$r .= "\n" . '
<script type="text/javascript">
//<![CDATA[
tinyMCE.init({'.$settings_parts.'});
and just before:
//]]> </script>';
So what you should end up with will look like:
// render the tinymce init
$r .= "\n" . '
<script type="text/javascript">
//<![CDATA[
tinyMCE.init({'.$settings_parts.'});
function fileBrowserCallBack(field_name, url, type, win) {
var connector = "../../filemanager/browser.html?Connector=connectors/php/connector.php";
var enableAutoTypeSelection = true;
var cType;
tinyfck_field = field_name;
tinyfck = win;
switch (type) {
case "image":
cType = "Image";
break;
case "flash":
cType = "Flash";
break;
case "file":
cType = "File";
break;
}
if (enableAutoTypeSelection && cType) {
connector += "&Type=" + cType;
}
window.open(connector, "tinyfck", "modal,width=750,height=400");
}
//]]>
</script>';
You then need to open up /filemanager/connectors/php/config.php and set the path to your images folder at line 27. If you use default EE folder structure, it will look like this:
// Path to user files relative to the document root. $Config['UserFilesPath'] = '/images/uploads/' ;
The last thing you then need to add this to your TinyMCE settings:
file_browser_callback : "fileBrowserCallBack"
Once you’ve followed all these steps, your file/image manager should be good to go but there’s a couple of refinements that can be made to make it more usable. By default, when you first set up the FCK file manager, it will create new folders based on the type of file you’re uploading in the location that you’ve specified. For instance, if your default upload location is /images/uploads/, the file manager will create a new folder called Images inside that when you first upload an image. If you don’t like this behaviour (and I didn’t), you can change it by adding some lines to the end of /filemanager/connectors/php/config.php:
$Config['FileTypeDirectories']['Image'] = ""; $Config['FileTypeDirectories']['File'] = "documents";
This is to let you upload images directly into /images/uploads/ and upload other files into /images/uploads/documents/. You then need to open /filemanager/connectors/php/io.php and change:
function GetUrlFromPath( $resourceType, $folderPath ) {
if ( $resourceType == '' )
return RemoveFromEnd( $GLOBALS["UserFilesPath"], '/' ) . $folderPath ;
else
return $GLOBALS["UserFilesPath"] . strtolower( $resourceType ) . $folderPath ;
}
to:
function GetUrlFromPath( $resourceType, $folderPath ) {
global $Config ;
if ( $Config['FileTypeDirectories'][$resourceType] == '' )
return RemoveFromEnd( $GLOBALS["UserFilesPath"], '/' ) . $folderPath ;
else
return $GLOBALS["UserFilesPath"] . $Config['FileTypeDirectories'][$resourceType] . $folderPath ;
}
And then change:
function ServerMapFolder( $resourceType, $folderPath ) {
// Get the resource type directory.
$sResourceTypePath = $GLOBALS["UserFilesDirectory"] . strtolower( $resourceType ) . '/' ;
// Ensure that the directory exists.
CreateServerFolder( $sResourceTypePath ) ;
// Return the resource type directory combined with the required path.
return $sResourceTypePath . RemoveFromStart( $folderPath, '/' ) ;
}
to:
function ServerMapFolder( $resourceType, $folderPath ) {
global $Config ;
// Get the resource type directory.
$sResourceTypePath = $GLOBALS["UserFilesDirectory"] . $Config['FileTypeDirectories'][$resourceType] . '/' ;
// Ensure that the directory exists.
CreateServerFolder( $sResourceTypePath ) ;
// Return the resource type directory combined with the required path.
return $sResourceTypePath . RemoveFromStart( $folderPath, '/' ) ;
}
Another thing missing from the FCK file manager by default is the ability to delete files, but Bram Van Damme comes to the rescue with a good description of how to add this ability. (I found out after having gone through this process that there’s another file manager for FCKEditor, MCPUK, which already has this built in. And the people who put together the TinyMCE/FCK file manager combo have also done one for MCPUK. But I had trouble with folder permissions with this one and, having already customsised the FCK file manager to my liking, gave up.)
SMExplorer/SMImage
I only just came across these plugins from Synasys Media last week (and looks like I missed out on getting it as freeware by only a couple of weeks
). The site is in German but it’s still fairly easy to work out what you need to know and that is that:
- there are plugins for images, files and symbols for both TinyMCE and FCKEditor,
- there’s also multi-upload plugins for both to enable uploading of multiple files simultaneously,
- personal licences start at €15 and commercial licences (for use on unlimited sites) start at €100 (significanly cheaper than the alternatives offered by Moxiecode – see below).
Set-up is also very easy: at its most basic, all you need to do is upload the plugin to the plugins folder and then add smexplorer and smimage to your lists of plugins and buttons in your TinyMCE settings, although there are a variety of other configuration options which can also be added to your TinyMCE settings (i.e., no need to edit any other files – all the settings can be controlled via your EE control panel).
The interface is much better than both iBrowser and the FCK file manager and really the only thing that sets it apart from the Moxiecode offerings is that some of the main function icons don’t have labels next to them so you need to hover them to find out what each one does (although the icons do give you a fair idea of what they’re for).
MCFileManager/MCImageManager
Moxiecode, the makers of TinyMCE do provide these two very good plugins, but they’re the most expensive of the ones I’ve looked at and as far as I can tell, the only advantage they have over the similar offerings from Synasys Media is, as I mentioned above, a slightly better interface with labels on some of the main function icons. All other functionality seems to be identical.
And with prices for a single domain at $73 US and $47 respectively, and for unlimited usage at $440 and $293, they may soon find SMExplorer and SMImage will become the more preferred commercial option.
Kae’s File Manager (KFM)
As pointed out in the comments by Demona, KFM is another free plugin which can be used with either TinyMCE or FCKeditor. I’d not heard of it before and the KFM website doesn’t exactly sell its virtues too well (it could do with an online demo), but Demona said it was easy to set up, so I thought I’d give it a try. And it turns out Demona was right: set up is as easy as uploading the plugin folder and a modified version of LG-TinyMCE which can be downloaded from EEclub.ru, and then enabling the extension and modifying your settings. As well as the usual TinyMCE settings, the extension also lets you configure KFM including which panels to show, which member groups to give access to it and the location of your uploads directory.
The interface is much better, and set up was much easier than for TinyFCK, and for a free plugin, from my limited testing so far it certainly gives the commercial ones a run for their money. The only slight problem I found was that when creating a new folder, when trying to highlight the default text that comes up with the mouse, the whole window would move and the text wouldn’t be selected; you had to use the backspace key instead.
TinyMCE Ajax File Manager
Also pointed out in the comments by Luke Vincent is TinyMCE Ajax File Manager by PHPLetter. This one comes with an online demo, so I haven’t tested it personally (although it would be good if the demo wasn’t limited to uploading files under 2Kb). Set-up doesn’t appear to be as straightforward as for SMExplorer/SMImage or KFM, and the fact that those two can largely be controlled from the extension’s settings in the control panel would make me prefer them over PHP Letter’s offering.
TinyBrowser
Another pointed out in the comments by Klaas is TinyBrowser by Lunarvis. There’s no online demo which is a shame because it’s actually a very good file management plugin, is user-friendly, and not very hard to set up. It uses Flash to upload files and you can add multiple files simultaneously with progress bars to let you know how the upload process is going.
To set it up in EE all I had to do was edit the config file that comes with TinyBrowser to point to the correct uploads folder, and then modify ext.lg_tinymce.php to add
$r .= "\n" . '<script type="text/javascript" src="/path_to_tinymce/plugins/tinybrowser/tb_tinymce.js.php"></script>';
just after
$r .= "\n" . '<script type="text/javascript" src="' . trim($this->settings['script_path']) . '"></script>';
(There’s actually two places that the script path is called depending on whether you’ve selected Gzip compression from inside the extensions settings or not.)







Adding to your list i found Tinymce Ajax File Manager @ PHP Letter
Very easy to implement and good instructions on the website.
Thanks Luke. I had actually come across that at one point but forgot about it when it came time to write the article.
Just yesterday the member of EEclub.ru published the version of LG-TinyMCE with possibility to work with KFM (Kae’s File Manager (with images support)).
You can read about it here, post #44 (link for download)
Hi Demona, thanks for the link. I hadn’t come across KFM before and it seems like it’s quite complex to set up. It would be good if there was a demo of it on the author’s site so people could see whether the time spent setting it up was worth it or not.
Unfortunately, I don’t now the author of KFM
. I agree that he need a demo. But I had tested it with LG “TinyMCE Plus KFM” yet. It’s really easy - you don’t need to modify anything - just to copy KFM plugin from archive to TinyMCE plugins folder, and install “LG TinyMCE Plus KFM” like usual “LG TinyMCE”. All options (and access for different group of user) can be done with extension setting menu.
Screenshot
Screenshot2
Thanks Demona. I might download it and give it a try.
You were quite right Demona: easy to set up and quite easy to use. I’ve updated the article to include it.
It has been said a few times in this article that KFM does not have an online demo. However, if you go to http://kfm.verens.com/ and look to the left of the big Download button, I have placed a demo right there.
Maybe I should make it more obvious.
Thanks for testing KFM - I hope you enjoyed it, and I hope you will also enjoy release 1.4 when we let it out!
Hi Kae, thanks for droping in. Sorry, you’re right, there is a demo on your site and I completely missed it.
As far as testing KFM goes, I’m a bit confused by it now. I set it up OK locally and on a couple of other installations of EE with no problems, but then a further two installations that I tried, I was getting a PHP error in the popup window and I’m not sure what I’ve done differently.
I haven’t tested it myself but maybe add this to your list:
http://www.lunarvis.com/products/tinymcefilebrowserwithupload.php
Thanks for the link Klaas. I’ve downloaded TinyBrowser and given it a test run. Setting it up is straightforward, but whenever I try to upload files, the upload process will commence but then give me a File upload failed - please check your permissions error. The permissions on the folder are correct though because uploading using different file managers works fine.
The suggested solution is to upload an .htaccess file with:
SecFilterEngine Off
SecFilterScanPOST Off
but that stops the pop-up working altogether.
If anyone else has set up this plugin succesfully, maybe they could share their experiences with it?
I have just set up Tinybrowser for a project i’m working on and i’ve got no problems with file uploads. I’m pretty impressed with the plugin so far. It’s easy to set up, has a clean interface and some nice features.
John, maybe you can post your problems in this thread over at the moxiecode forum. The author is active there.
http://tinymce.moxiecode.com/punbb/viewtopic.php?id=12705
Hi Klaas, thanks for the link. I’m actually talking to Bryn directly by email so will post an update when we’ve worked out what’s going wrong.
It helps if you check which version of PHP you’re using.
Turns out the sites I was having trouble with were running PHP4+
I was wondering how did you setup the tinybrowser plugin? are you using it in EE?
Hi Aeran, yes I’m running it from inside EE. Still working through the issue with Bryn, the plugin’s creator, as the browser works as far as browsing files goes, but I can’t upload anything.
Nice to hear that john. I hope you’ll the post the workaround here
With regards TinyBrowser, it seems there was a problem with the .htaccess file I was trying to use as it would stop the TinyBrowser window from popping up, but the
SecFilterEngine Off
SecFilterScanPOST Off
were required because my server has mod_security enabled. I tried saving a new version of the .htaccess file and now everything is working as expected.
Hi,
I seem to have a path problem I can’t track down. After clicking the image ‘browse’ button I get the ‘popup’ but with a 404. The path in the URL is http://localhost:9026/js/tinymce/jscripts/tiny_mce/filemanager/browser.html?Connector=co….
This seems odd as the filemanager directory is in tinyfck within the tinymce plugins directory?
Hopefully someone will read this and immediatley spot a mistake I made somewhere.
Thanks
Hi Traverse, the filemanager directory needs to go in the root of the TinyMCE directory, ie, at the same level as the plugins directory.
Fast reply thanks John! Sorry, did I miss that in the instructions?
I actually put the filemanager directory into tinymce/jscripts/tiny_mce/ to get it to work.
So is the rest of the tinyfck directory is ok to stay in the tinymce plugins directory?
One more question… would you say the tinyfck solution is the best of the ones you listed?
Thanks
There’s no specific instructions but when you unzip the download from the TinyFCK site, that’s how the folders are set up.
I’d probably go for the SM, KFM or TinyBrowser plugins ahead of TinyFCK.
I’ve installed the KFM extension but I get this error when I try to browse files:
“Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.”
Is there a specific version of tiny_mce that’s needed? The version we’re using is 3.0.7
Hi Smartpill, you’d have to check the requirements on the KFM site. I’ve been using it with 3.1.0.1 and higher.
Also, this error can happen if your web server does not support some of the directives in the root .htaccess file in KFM. Best thing to do is ask at the KFM forum if you continue to have trouble.
Looks like the .htaccess directives were the cause. Mainly:
<IfModule mod_php4.c>
php_value magic_quotes_gpc off
</IfModule>
Thanks
Hi John,
Thanks for the great article. I’ve successfully installed Tiny MCE with the Tinybrowser plugin and all is working as it should unless you’re using EE’s Multiple Site Manager.
The problem arises that you can only set one series of upload destinations in Tinybrowser config file. If you are using MSM this means that images for each site are only uploaded to the default MSM site’s URL.
Have you come accross this problem and if so have you found a solution?
Thanks
Hi Odran, no, I’ve not had cause to set this up with a MSM site yet so haven’t encountered this issue. I know the SM plugins let you specify different destinations via the extensions settings though.
Hi,
How to integrate this(tinybrowser) into JSP/Struts based applications, I have set up for TinyMCE for my application. Can any one suggest me the steps as how it can be implemented using java/jsp/javascript.
Thanks in advance,
-Jee
http://www.phpletter.com/Demo/Tinymce-Ajax-File-Manager/ is really fine.
hey, I want use SMIImage, but I don’t know how to add to my fckeditor, could you help me step by step?
thx
Hi Farrikh, I don’t use FCKEditor so I can’t really help you.
Hello farrikh,
I’m the developer of SMImage and SMExplorer and so on… Please send me an email over my website (synasys.de). I think I can help you
J.St.
SYNASYS MEDIA
there is another images uploader for tinyMCE, still not working correctly, but it looks nice. can be found here:
demo: http://tiny.dustweb.ru/
download: http://dustweb.ru/files/ImageManager11beta2.zip
just one thing you have know about - it in russian..
ImageManager11beta2 don’t have enough functionality at the moment – no security, no any functionality for edit pictures. I’m watching for this project and if they will have some think interesting – I will create extension like for KFM. At this moment I used the TinyBrowser and in the process of creating ext. (for security), of course KFM have more functions but I decide do not support modification of LG-TinyMCE+ KFM any more.
p.s. John Faulds - i think it’s time to rewrite the article with FF reality. Now it’s easier to insert FM’s it to LGTinyMCE2.
I’m sorry, I don’t understand what that means.
I speaking about fieldframe and LGTinyMCE2. The last have a better configuration – for example u don’t need any more to modify ext.lg_tinymce.php for insert additional script file loading. U can’t just add it in main configuration in FF. And if u want, u can add a different FM for each of u field, because u can add individual TinyMCE configuration in field setup.
MAXLAZAR - Can you please post an example of how you have configured LGTinyMCE2 and TinyBrowser? I’ve followed the directions, but it isn’t working. Not sure what I’ve missed.
Yeah, I must admit I tried to use LT TinyMCE 2 on a site I set up recently and couldn’t get it working either. The javascript is getting loaded into the page, but the textareas aren’t being converted.
it’s just example(tiny_mce in the root of website, TinyBrowser in the TMCE plugin folder):
in Fieldtypes Manager LG TinyMCE settings :
<script src="http://site.com/tiny_mce/tiny_mce.js" type="text/javascript" charset='utf-8'>
<script type="text/javascript" src="http://site.com/tiny_mce/plugins/tinybrowser/tb_tinymce.js.php" charset="utf-8">
Sorry Max, Wordpress won’t let the whole of your comment through. I’ve tried editing it, but what’s displayed is the only thing it would allow through. But what you’ve posted is pretty much the same as what I’ve done.
I setup it on the couple sites without any problem. What browser do u used?Version of TinyMCE? Do u check it with FireBug?
p.s. file for field setup http://wiseupstudio.com/tmp/article.js - it was cut up from my last message.
I think it’s something wrong with the Fieldframe version of LG TinyMCE. MaxLazar, I used your config, but it didn’t take effect until I made my custom field a textarea, then changed it back to TinyMCE. Now my field is stuck with your config with ALL the buttons and can’t get it back to the basic toolbar layout.
Do you have to have the MoxieCode File or Image manager already installed? I’ve seen screenshots of the “add image” button popup, and next to the URL field it has another button, which I assume is the “browse” button, which then launches TinyBrowser. I don’t even have a “browse” button.
OK, I found it. I’d missed out a comma from the TinyMCE js configuration file.
how can I add a pre-delete warning to TinyBrowser? I’d like something that pops up and says “Are you sure you want to delete this file?” with a yes and no button.
Thanks in advance for the help!
Hi Carson, I see you’ve made the same comment over at the TinyMCE forum; that’s probably a better place to ask your question.
Where is the config file for TinyMCE? It seems I had it at one time and now I cannot find it anywhere.
Arlen, that’s probably going to depend on how you’ve got things set up. Is this for an EE site? Are you using an extension to activate TinyMCE?
John,
Thanks for responding.
I’m doing one project on a few different machines, and ocassionally I forget to configure all the latest plug-ins on one machine. I fixed it.
Hi John,
I was curious if you were able to use TinyBrowser in the manner that it would respect multiple upload locations…much like EE can have different ACLs to access those locations?
In other words, does this browser only pull images from one folder?
===
Also, LG (makes great exts) changes the file type in EE which in my mind enters the ‘hacking’ world of EE - > I would much rather use non-intrusive http://expressionengine.com/files/extensions/tinymce.zip. Any thoughts or experiences?
Thanks!!!
Yes, the latest version of TinyBrowser can be used to manage multiple folders so you could in fact set it up as a standalone file manager for a whole site. (I actually helped set it up recently for a site to do just that.)
Sorry, I don’t really understand your second question.
Sort of LG vs. EE tinymce plugin.
I can remove the tinyMCE from Ellislab and NOT affect my fields and content. LG requires me to add new the field types and then store the info into those fields. What happens to entries when I remove the LG plugin and WYSIWYG type of field is ‘gone’?
One of the best charms of EE is the fact that I don’t need many plugins,exts etc. so the less ‘3rd party dependencies’ the better…
Thanks again!
The content is still retained in the database as it was first entered, isn’t it (ie with all the HTML included)? Changing a fieldtype doesn’t automatically change the content in the database, it just changes how you can interact with it via the publish/edit form.
I don’t really see what the issue is: you have to use an extension to enable TinyMCE so you either use the one from EllisLab or use one of Leevi’s ones. For me, Leevi’s extensions are easier to customise to get TinyMCE to do what you want it to, so those are the ones I use. I don’t see his extensions as being any more or less intrusive or hacky than the one from EllisLab.
Ah the key in in the:
“Changing a fieldtype doesn’t automatically change the content in the database, it just changes how you can interact with it via the publish/edit form.”
- Thank you very much for the follow up as well as the article!
The beta version of new FF field type - MX TinyBrowser Field, was published on EEclub forum. At the moment it is standalone version (with Matrix field compatible), but in the nearest futures there will be the option “On-click” integrating with TinyMCE. If I understand right, they are the same people who created modification of LG TinyMCE+KFM, so ++KFM is not supported any more
.
Link
hi. just wanted to say that i found your reviews usefull, and while digging arround, i found this page with some more managers for tiny.
http://sourceforge.net/search/?group_artifact_id=738747&type_of_search=artifact&group_id=103281&words=images
perhaps someone will take their time to test and review them, for now im settled with tinybrowser
Was published a new version of free extension MX TinyBrowser Field.
some additional information
New official page of TinyMCE+TinyBrowser extension
Wow, that’s excellent. I’ll be trying this out very soon!
Hey! Just wanna say THANK YOU for reviewing, briefly as you did, the options for getting a file manager into tiny_MCE. Saved me loads of time and some cashola
By the by, I went for Tinybrowser after trying for hours to get an older version of MCFileManager to work with the latest tiny_mce. OK, latest MCFileManager rocks but definitely not worth the 50 Euros given the free alternatives.
The filemanager from Lunarvis is brilliant!
Thanks for sharing. I would like to show my gratitude somehow, i will donate some contribution thru paypal.
Thanks again!!
Joren
Good idea. There’s a donation button on his site.
Hey there!
I read your article and it’s really interesting. Therefore, I spent some time on the CKeditor webpage and it seems that their new version is really user friendly and still has this image management feature. Would you say now that the CKEditor is the most convenient solution? or would it still be the TinyFCK one?
Thanks in advance
ben
Hi Benjamin, I use TinyMCE almost exclusively now so couldn’t really comment on CKeditor as I’ve not used it in quite a while.
Adding to your list i found Ajex File Manager 1.0
Thanks for the post, helped me a lot
Hi Henrique, that looks interesting. I had a quick look at the demo and all the menu items are in Russian. I’m assuming that it comes with an English translation too?
I’m pretty happy with tinybrowser, thanks for the advice, I set it up one hour ago and it works perfectly. I had some troubles with absolute/relative urls, but nothing too complicated…
Thanks for this article: concise and professional. Has influenced our decision.
I can create folders with Tinybrowser, but can’t delete them. The checkboxes are greyed out. Anyone with the same experience?
Does anyone have any advice on which of these solutions would be best for multi user solution?
I’ve looked at KFM but it includes an admin panel that is a bit of a hole in my mind.
Hi Melvis,
the admin panel in KFM is not required - you can remove it by simply deleting the “/admin” directory. It’s there for convenience only.
Hi Kae,
Many thanks for that. I will take a look.
However the problem I have now is a JavaScript error on upload.php when I try loading an image:
parent.kfm_vars is null or not an object
I’ve not found a fix for the JavaScript issue I have with KFM mentioned above, and I when I insert an image the address used is the address of plugin directory rather than the directory where the images are uploaded too.
Anyone know what I might be doing wrong?
Hi all,
In the end I went for TinyBrowser and after a few problems I have exactly what I want. It’s a very professional looking application.
As few observations that I made along the way are that it doesn’t appear to like sessions and spits out “you require permission to view this page” and that it’s not too happy when you use PHP requires and includes to pull in script into config_tinybrowser.php,
Other than that it’s great.
@John
I installed TinyBrowser, noticed you had issues in firefox too. My installation works flawlessly in IE, but not in chrome or firefox. Tried the .htaccess fix you mentioned, but that only gave me a 500 internal server error when I tried it.
Any thoughts?
Hi Geoff, no I’ve never had any browser-specific issues with TinyBrowser.
@John
Nevermind…I actually found uncommenting the line following // Session control and security check.
Which was line 29 in my altered config_tinybrowser.php
Worked. Now it works in every browser.
I set a $_SESSION variable before opening tinybrowser so that I can pass to it a folder that I want used for the uploads.