Hello!
I have the following problem: My upload works but when I upload an image there are two different ways.
The first way is to "Upload" it directly and the second way is with the "data browser". My Problem is that the images uploaded with the first way are in the following direction: "/my server/uploads/" and the images uploaded with the second way are in the following direction: "/my server/uploads/image/". I cannot change this difference.
Can somebody help me?
Thanks.
I have the following problem: My upload works but when I upload an image there are two different ways.
The first way is to "Upload" it directly and the second way is with the "data browser". My Problem is that the images uploaded with the first way are in the following direction: "/my server/uploads/" and the images uploaded with the second way are in the following direction: "/my server/uploads/image/". I cannot change this difference.
Can somebody help me?
Thanks.
Re: Upload in wrong directory
Use your notepad or something like Editplus to edit the file config.php located in "editor\filemanager\connectors\php\".
Find:
And replace with:
Now, all your image files will be uploaded into the "uploads/images" directory, and it can be found through the browser.
Re: Upload in wrong directory
What about ASP? can i configure the same thing so that it will upload to same folder?
I am using FCKEditor in sending newsletter, but when I upload an image, it displayed OK on the panel (before send), but when i send it out & receive in email, it shows broken image, how should i do to resolve this issue? is it because of the path?
I am really need help ....
Thanks
Re: Upload in wrong directory
Re: Upload in wrong directory
Re: Upload in wrong directory
Re: Upload in wrong directory
Many thanks for that tip:
I was tearing my hair out over this yesterday. This sort of JS Black Magic should be more carefully explained in the docs. After all, we are not all JS whizeroos using FCKeditor. Will give it a whirl and see what happens.
Cheers.
Re: Upload in wrong directory
Thank you...!
Re: Upload in wrong directory
for ASP folks, go to line 35 on connectors/asp/config.asp
change ConfigUserFilesPath = "/userfiles/"
to
ConfigUserFilesPath = "/userfiles/image/"
and on line 109, change
ConfigFileTypesPath.Add "Image", ConfigUserFilesPath & "image/"
to
ConfigFileTypesPath.Add "Image", ConfigUserFilesPath & ""
that is all
Re: Upload in wrong directory
I know this is an old post, but for anyone out there needing this answer... you make the change in: FCKEditor/editor/filemanager/connectors/cfm/config.cfm.
But truthfully, if the server has both CF and PHP installed, it's probably better for you to switch the upload function to PHP,even if you are developing in CF.
First edit FCKEditor/fckconfig.js lines 278 and 279 to:
var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
Then set: FCKEditor/editor/filemanager/connectors/php/config.php, line 30 to$Config['Enabled'] = True ;, then make the above change.