Hi,
Have downloaded the 2.3 version.
Have extrated to http://www.domain.com/admin/
Have enabled the asp upload function setting in the config.php to 'true'. Have set basepath in html form to '/admin/'.
Form loads fine and am able to type away. clicking the image button, i click the Upload tab. I browse for an image file and click upload, and it says file uploaded sucessfully.
The image is viewable in the editor and i can drag it.
Looking via ftp the file is uploaded to http://www.domain.com/UserFiles/imagefile.jpg.
Now the only problem is that when I send the form, ( i submit the form textbox to a php script which sends it out to a receipient as a html email), when someone reads that email the images are broken.
Viewing the source of the email the inmages are linked as 'UserFiles/imagefile.jpg'. I need to append the http://www.domain.com/ to the start of that, but it doesn't do it.
Any help HUGELY apreciated guys / girls.
Running Wink23, IIS, PHP 4.4 CGI.
Jono
Fri, 06/16/2006 - 12:41
#1
RE: Image Problem, PLEASE HELP
Hi,
You will have to take a look in frmresourcelist.htm in the connectoe you use.
In the javascript part of that file you will see a function: GetFolderAndFilesCallBack(fckXml).
Look for: //Add the files
Look for: sHTML += oListManager.GetFileRowHtml( sFileName, sCurrentFolderUrl + sFileName, sFileSize )
The second param (sCurrentFolderUrl + sFileName) is the "UserFile/bla.jpg" in the link. If the domain is always the same you can change it to something like: 'http://www.domain.com/' + sCurrentFolderUrl + sFileName
the line of code will be:
sHTML += oListManager.GetFileRowHtml( sFileName, 'http://www.domain.com' + sCurrentFolderUrl + sFileName, sFileSize )
I have changed some things there myself for an experimental (php)Ftp connector.
I hope this will help you!