I have a related problem with a windows 2000 platform with easyphp 1.8 : 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 ?
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