Hello,
I set up an apache site with a source folder that cointains /UserData/Image, etc. and /lib/FCKeditor. It's Windows XP Media Center, and Apache is running as an administrator. (I've tried local system account, too.) So, I don't think it's a permissions problem.
I changed the following lines in /lib/FCKeditor/filemanager/browser/default/connectors/php/config.php:
$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/UserFiles/' ;
I changed the following lines in /lib/FCKeditor/fckconfig.js:
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
The image upload and browser don't work, and no errors are shown on screen. This shows up in the Apache error log:
File does not exist: C:/website/lib/FCKeditor/editor/filemanager/upload/undefined, referer: http://server.domain/lib/FCKeditor/edit ... image.html
Can anyone help me to get this running? Any input is appreciated. Thanks.
- Kertis
Mon, 05/01/2006 - 18:52
#1
RE: UploadConfiguration Problem, WinXP+Apache+PHP
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ;
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ;
by
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ;
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ;
It should work after.
The upload.php file needs to be change also... the images are not upload on the right directory
change:
(line 68)
$sServerDir = GetRootPath() . $Config["UserFilesPath"] ;
by
$sServerDir = GetRootPath() . $Config["UserFilesPath"] . $sType . '/';
and
(line 93)
$sFileUrl = $Config["UserFilesPath"] . $sFileName ;
by
$sFileUrl = $Config["UserFilesPath"] . $sType . '/' . $sFileName ;
-----
Olivier
RE: UploadConfiguration Problem, WinXP+Apache
fckeditor is integrated in SPIP 1.8.3.
The alias /testweb/ point to "F:/SPIP-v1-8-3/" directory and fckeditor is in a subdir of /SPIP-v1-8-3.
When I upload an image, it is placed in a created directory F:\SPI\UserFiles\Image (outside the website).
The link of the image is the source is /UserFiles/Image/ImageName.jpg but it is not displayed in the editor.
To make the image displayed I need to do the following :
1 - copy the image file to the correct directory F:\SPI\UserFiles\Image
2- Modify the link in the source to /testweb/UserFiles/Image/ImageName.jpg
This problem remains with Wamp 5.1.6.1 and other windows machine (98/2000 server)
There is obviously something wrong with some paths but I'm not familiar enough with PHP to locate where the problem is.
Is there somebody that could help me to debug this ? Thank you very much in advance ?
Pascal
RE: UploadConfiguration Problem, WinXP+Apache
I think that could help some other users
Pascal
RE: UploadConfiguration Problem, WinXP+Apache+PHP
Salut
I have the same probleme
My website is in /www/ on my ftp to online.net
And the path to the image can work
------
Mon anglais est déplorable
en fait mon site est dans /www/
et il veut uploader dans / à la racine du ftp , pas dans /www/ ou est mon site et FCK
que faire ?