Because i was having trouble getting the file browser to work i started to experiment with the test html supplied with FCKeditor. I am using the FCKeditor on a unix environment (shared webserver) which has PHP Version 5.2.3 installed.
So i loaded this in my browser : http://www.mysite.tpl/fckeditor/editor/ ... /test.html
And what I got is this:
Warning: mkdir() [function.mkdir]: No such file or directory in /home/myuser/domains/mysite.tpl/public_html/teck/fckeditor/editor/filemanager/upload/php/upload.php on line 94 Warning: move_uploaded_file(domains/skiptest.com/public_html/teck/fckeditor/userfiles/file/johan_ajax.txt) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/myuser/domains/mysite.tpl/public_html/teck/fckeditor/editor/filemanager/upload/php/upload.php on line 111 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpaigxlF' to 'domains/skiptest.com/public_html/teck/fckeditor/userfiles/file/johan_ajax.txt' in /home/myuser/domains/mysite.tpl/public_html/teck/fckeditor/editor/filemanager/upload/php/upload.php on line 111
In my 2 config.php files (the one from the filemanager/php/ and the one from the filemanager/browser/default/connectors/php/) files i changed the following lines:
$Config['Enabled'] = true ; $Config['UserFilesPath'] = '/fckeditor/userfiles/' ; $Config['UserFilesAbsolutePath'] = 'domains/mysite.tpl/public_html/teck/fckeditor/userfiles/' ;
In the fckconfig i changed these:
var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php
(note: i replaced my user and my domain name with dummy text (myuser, mysite.tpl) )
Anyone has any suggestions on how to resolve this? We would really like to use the browsing feature for managing image content. Thanks in advance.
Re: upload problem
Hi,

Remember to start absolute path with slash at the beginning, that's why it is called absolute path
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: upload problem
Any other ideas would be most welcome.
Re: upload problem
I am having the exact same problem with the same error messages from the test.html and my settings use the following settings in the PHP config.php file (domain name changed for privacy)
If I click the Upload tab, Browse to select a local file and click Send to the Server, it reports that the file was uploaded properly but the file is never saved on the server.
Now here is the kicker. On either the Link Info or Image Info tab, if you click the Browser Server button, I can upload the images and the files just fine. It will not upload files with image extensions to the /userfiles/file/ folder and it will not upload files with file extensions to the /userfiles/image/ folder. I can create folders and subfolders and the files are uploaded properly to the server. No problems...works great.
Now either the Browser Server application is not using any of these configuration files or something is definitely screwed up. At least in my case, at least I can upload images/files to the server and select them for use in a document but it would be nice to get the Upload tab to work.
FOR THE DEVELOPERS
Overall, this is a terrific application but the installation needs work. There should be a single install file where all settings can be entered and then all other files using the single installation configuration file. Sure, you have the fckconfig.js configuration file but you also have to manually edit other config.php files for settings that should be in a single configuration file. Also, a configuration edit routine would be nice so that if you made any changes to your directory structure, you can simple change the configuration to match your changes.
OK, I want my cake AND icing too!!! LOL
Re: upload problem
Do you realize that by configuring it that way, anyone that finds out the path to the filebrowser will be able to upload the files to your server?
That looks like a file system path, not a public folder
[/quote]
And definitely, that looks like a URL, not a file system path like shown in the examples (just two lines above it)
The editor is executed in the client side, so you can't put any server configuration data there. The only thing that you need to configure in a different file are the connectors (in 2.5 there will be only one file).
I don't think that it's asking too much to do that configuration.
Re: upload problem
Here are the settings and the Upload tab still does not work. I have parsed the code completely but when I did try to upload it indicated the the target URL hadn't been entered. If I wanted to upload a file using the Upload tab, do I still have to put in a URL in the Image Info or File Info tab?
Here is the code. If you see anything that is probably not correct, I would appreciate the feedback.
Again, I am making an assumption but the $Config['UserFilesAbsolutePath'] = '/public_html/userfiles/' should be for the root of the virtual directory as I am on a shared server. In that case the public_html is one of the folders in my server root.
Thanks again for the feedback. It was useful.
Re: upload problem
These errors are typically generated because of permission issues on the directory in question. For testing purposes modify the permissions of your userfiles and file directories to 777.
Re: upload problem
Based on your previous post, I would say that you must set
Re: upload problem
That did the trick!!!! Thank you so very much.....
Re: upload problem
They allready were set to 777
(the userfiles dir itself as well as the file, flash, image and media subdirs)
The problem persists, any other ideas would be most welcome.
Thanks in advance.
Re: upload problem
Re: upload problem
I'm also having problems using the uploader! Images work perfectly when they are copied like text from one page to another, but when new images are uploaded, its raising hell!
I set the folder to 777, changed all of the configs:
$Config['UserFilesPath'] = '../images/' ;
$Config['UserFilesAbsolutePath'] = '/www/www/v2/images/' ;
The editor will be used in the admin folder which is why it has ../
It says the image uploaded fine but doesnt show up anywhere. And for the test.html none work.
ALSO: when saving it to database, it showed up as <input type="image" src="../images/testimage.jpg" /> which is wrong!
Please advise.
Re: upload problem
Beta release will be coming soon, you can download it as a "nightly build" in the download section.
You should have less problems with getting uploader to work there.
For the current version (FCKeditor 2.4.3):
if FCKeditor showed message that image uploaded fine, check via FTP where it has been placed, it should help you to adjust your config file.
make sure that you have properly cofigured both config files (inside upload and browser directory).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: upload problem