Bedolaga: Did you enter an absolute path then? it might be like "/thesiteroot/anotherfolder/uploadhere/", as long as you put them in your site's folder you should be ok.
I was wondering one thing though, if I want to customize this path every other upload, say if there were different users uploading and I want their files in seperate folders? Then a hardcoded setting in web.config wont do me any good or? Should I make my own upload-script if I want that type of functionality?
Yes! Yes! Yes! I'm happy! I downloaded a version RC3. Installed it into "FCKeditor" in my virtual directory, created folder "serverstorage" for gallery. Added to web.config next: <appSettings> <add key="FCKeditor:UserFilesPath" value="~/serverstorage/"></add> <add key="FCKeditor:BasePath" value="~/FCKeditor/"></add> </appSettings>
In .aspx file added: <FCKeditorV2:FCKeditor id="txtFCKeditor" runat="server" value="lkdjljdl" ></FCKeditorV2:FCKeditor>
HI, i'm new to this script and trying to get my bareings. i'm useing with php, i have managed to change where the dedault place is for uploaded files i.e. from /userfiles/ to where i want them but instead of images been put in Image i would like them to be put in images/uploaded/ and file to uploaded_files.
i had a play with the atypes thing in frmresourcetype.html but not sure if this was the right place and didnt get very far with editing it. anybody managed to change the folders and how, or has anybody got suggestions where to look?
I have the same question as cantyco. I can change the upload directory no problem, but how can I get the File Browser to see my existing file structure. I am integrating this editor into an existing content management system and I can't change where everything goes. So when I use the file browser to make a hyperlink, I want to see the files in the root directory that I set. All I can see are the folders that the file browser creates. I want to see all my files and folders in the root.
FOr Images, the file browser only works for the folder called "image". But I want it to see all the folders otherwise I have to change the whole site structure.
Ok I have looked for something on Cold fusion setting up seperate upload folders and I have ran into the asp and PHP versions of doing this.. but looking thru the cold fusion connector.cfm file the variable they are replacing does not exists.
So basically I'm trying to integrate fckeditor into an existing content manager that has folders in the client directories already.
example. /client1Dir/ /cmImages1/ = Image /cmFlash/ = Flash /cmDocuments/ = File /cmImages2/ = (added could be media) /cmImages3/ = (same)
and I have not been able to find were or how to add custom Image Libraries. example - from the drop down add car logos this directory would not have an upload option for the client but this way they can have stock images available
I am needed something different then it seems everyone else needs.
My site already has a URL based path to obtain user files. I need to change the actual LINK when clicking on Browse Server.
The reason I need this is because my website already controls user galleries, and it is not accessecible by going to a Folder on server, but instead only by going to the URL of
/admin.php?op=resourceList
I have attempted a couple changes to the /editor/dialog/fck_image.html file and so far it's not working. What I have tried is changing
the editor doesn't know how to handle the ~ character (a .net reference to the virtual directory root folder) on the client side, so this doesn't work without some trickery in the FCK editor javascript.
at any rate the information about where to set the upload path is more or less correct. to use the config file option you can add this line of code in your web.config file: <add key="FCKeditor:UserFilesPath" value="/mycustomfilepath/"></add>
I have an adequate work-around now that works almost perfect.
In fckconfig.js I modified the line FCKConfig.ImageBrowserURL = I took out the querystring "Type=Image", now when I browse for an image I can see all the folders that the file browser shows me.
Next I modified "frmresourcetype.html" to look like this: var aTypes = [ ['File','File'], ['Images','Images'], ['Flash','Flash'], ['Media','Media'], ['/','/'] ] ;
Note I added ['/','/'] to the list.
Now when I go into the file browser it goes into the "File" folder by default, but I can choose "/" now and see all my files an folders and browse through them.
It would be perfect for me if I could make the default folder root "/". Or even "images".
I have tried your solution but the type ['/','/'] didn't work. My current directory structure is:
my web pages are under "wwwroot/website/", wwwroot is the web server root. I put my images under "wwwroot/website/images/"
so I tried to change the types in the "frmresourcetype.html" as: var aTypes = [ ['Images','Images'], ['/','/'] ] ;
And I set the userFilesPath as "/website/" in my application file (I use coldfusion)
When I clicked "browse server" on the link page, browsing the images folder worked but for the "website" folder it didn't work (choose "/" in the drop box). The window was blank and not refreshing. I think my path is correct because I can upload files to the "website" folder but just can't see any of my existing files there.
Please help me I already work around the problem for many days. Thanks.
RE: Setting the upload directory
RE: Setting the upload directory
ok, found the settings for the .net connector.

you can set it in web.config: FCKeditor:UserFilesPath="~/uploads/"
<note: I have not tested this>
I actually just set the default value in the 'filebrowserconnector.cs' file:
private const string DEFAULT_USER_FILES_PATH = "~/UserFiles/" ;
the private string UserFilesPath property contains the logic of setting the UserFilesPath...
I've added the ~ character to put the files under my virtual directory rather than the root website. much friendlier in my opinion
RE: Setting the upload directory
I added

<add key="FCKeditor:UserFilesPath" value="/mycustomfilepath/"></add>
to web.config, but FCKeditor don't use this folder for server browsing
RE: Setting the upload directory
Bedolaga: Did you enter an absolute path then? it might be like "/thesiteroot/anotherfolder/uploadhere/", as long as you put them in your site's folder you should be ok.

I was wondering one thing though, if I want to customize this path every other upload, say if there were different users uploading and I want their files in seperate folders? Then a hardcoded setting in web.config wont do me any good or? Should I make my own upload-script if I want that type of functionality?
RE: Setting the upload directory
I did not find solution for this problem... I can't change a folder for files on the server
((

I think - I tested all options
RE: Setting the upload directory
I downloaded a version RC3. Installed it into "FCKeditor" in my virtual directory, created folder "serverstorage" for gallery.
Added to web.config next:
<appSettings>
<add key="FCKeditor:UserFilesPath" value="~/serverstorage/"></add>
<add key="FCKeditor:BasePath" value="~/FCKeditor/"></add>
</appSettings>
In .aspx file added:
<FCKeditorV2:FCKeditor id="txtFCKeditor" runat="server" value="lkdjljdl" ></FCKeditorV2:FCKeditor>
And now it works!!!
RE: Setting the upload directory
But now I have another problem...
I don't see inserted images into text-editor
Something abnormal with url to images
RE: Setting the upload directory
i had a play with the atypes thing in frmresourcetype.html but not sure if this was the right place and didnt get very far with editing it. anybody managed to change the folders and how, or has anybody got suggestions where to look?
Thanks
RE: Setting the upload directory
FOr Images, the file browser only works for the folder called "image". But I want it to see all the folders otherwise I have to change the whole site structure.
RE: Setting the upload directory
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html??Type=/&Connector=connectors/asp/connector.asp' ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=/&Connector=connectors/asp/connector.asp' ;
RE: Setting the upload directory
if php you have modify: editor/filemanager/browser/default/connectors/php/connector.php
$GLOBALS["UserFilesPath"] = '/UserFiles/' ;
line N 37 Version: 2.0 RC2
or
editor/filemanager/browser/default/frmresourcetype.html
var aTypes = [
['File','File'],
['Image','Image'],
['Flash','Flash'],
['Media','Media']
] ;
RE: Setting the upload directory
RE: Setting the upload directory - CF
So basically I'm trying to integrate fckeditor into an existing content manager that has folders in the client directories already.
example.
/client1Dir/
/cmImages1/ = Image
/cmFlash/ = Flash
/cmDocuments/ = File
/cmImages2/ = (added could be media)
/cmImages3/ = (same)
and I have not been able to find were or how to add custom Image Libraries.
example - from the drop down add car logos
this directory would not have an upload option for the client but this way they can have stock images available
Thanks for any help in advance
Troy
RE: Setting the upload directory
My site already has a URL based path to obtain user files. I need to change the actual LINK when clicking on Browse Server.
The reason I need this is because my website already controls user galleries, and it is not accessecible by going to a Folder on server, but instead only by going to the URL of
/admin.php?op=resourceList
I have attempted a couple changes to the
/editor/dialog/fck_image.html file and so far it's not working. What I have tried is changing
<input id="btnBrowse" onclick="BrowseServer();" type="button" value="Browse Server" fckLang="DlgBtnBrowseServer">
To instead use
<a href="admin.php?op=resourceList" input id="btnBrowse" onClick="newwindow();return false" type="button" value="Browse Server" fckLang="DlgBtnBrowseServer"></a>
Any ideas on how to correctly change the link to be opened when clicking the Browse Server link, for both Link Browser and Image Browser?
RE: Setting the upload directory
I need to change the onClick="" function to open the URL of
admin.php?op=resourceList
instead of the Default Browser Server Link
RE: Setting the upload directory
ok, I replied before I completely tested the code
the editor doesn't know how to handle the ~ character (a .net reference to the virtual directory root folder) on the client side, so this doesn't work without some trickery in the FCK editor javascript.
at any rate the information about where to set the upload path is more or less correct. to use the config file option you can add this line of code in your web.config file:
<add key="FCKeditor:UserFilesPath" value="/mycustomfilepath/"></add>
RE: Setting the upload directory for .net
Hi all,

I've tried this key in my web.config (into "<appSettings>") :
<add key="FCKeditor:UserFilesPath" value="/Images/UserFiles/"></add>
But it does not work
What can I do ?
Is it possible to have the source code of the .net connector ?
Thanks
RE: Setting the upload directory
In fckconfig.js I modified the line
FCKConfig.ImageBrowserURL =
I took out the querystring "Type=Image", now when I browse for an image I can see all the folders that the file browser shows me.
Next I modified "frmresourcetype.html" to look like this:
var aTypes = [
['File','File'],
['Images','Images'],
['Flash','Flash'],
['Media','Media'],
['/','/']
] ;
Note I added ['/','/'] to the list.
Now when I go into the file browser it goes into the "File" folder by default, but I can choose "/" now and see all my files an folders and browse through them.
It would be perfect for me if I could make the default folder root "/". Or even "images".
Any suggestions?
RE: Setting the upload directory
my web pages are under "wwwroot/website/", wwwroot is the web server root.
I put my images under "wwwroot/website/images/"
so I tried to change the types in the "frmresourcetype.html" as:
var aTypes = [
['Images','Images'],
['/','/']
] ;
And I set the userFilesPath as "/website/" in my application file (I use coldfusion)
When I clicked "browse server" on the link page, browsing the images folder worked but for the "website" folder it didn't work (choose "/" in the drop box). The window was blank and not refreshing. I think my path is correct because I can upload files to the "website" folder but just can't see any of my existing files there.
Please help me I already work around the problem for many days. Thanks.