Uploading an image

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

Uploading an image

Post by aostad »

Hi There,

Does anybody know, if an image or link can be inserted in description of Test plan, or any where in editable area?

I want to put an image (Screenshot) and attach an email to description section of Test Plan or any editable area.

I know there is an option for attaching a file to a test case but not for Test Plan.

I tried the "Insert/Edit Image" option in the FCKeditor, but I got an Error as below.

BTW, the 1.8.1 testlink is installed in my local machine called "alio".


The server didn't send back a proper XML response. Please contact your system administrator.

XML request error: OK (200)

Requested URL:
http://alio/third_party/fckeditor/edito ... Folder=%2F

Response text:
<%@ CodePage=65001 Language="VBScript"%>
<%
Option Explicit
Response.Buffer = True
%>
<!--
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* This is the File Manager Connector for ASP.
-->
<!--#include file="config.asp"-->
<!--#include file="util.asp"-->
<!--#include file="io.asp"-->
<!--#include file="basexml.asp"-->
<!--#include file="commands.asp"-->
<!--#include file="class_upload.asp"-->
<%

If ( ConfigIsEnabled = False ) Then
SendError 1, "This connector is disabled. Please check the ""editor/filemanager/browser/default/connectors/asp/config.asp"" file"
End If

' Get the "UserFiles" path.
Dim sUserFilesPath

If ( Not IsEmpty( ConfigUserFilesPath ) ) Then
sUserFilesPath = ConfigUserFilesPath

If ( Right( sUserFilesPath, 1 ) <> "/" ) Then
sUserFilesPath = sUserFilesPath & "/"
End If
Else
sUserFilesPath = "/userfiles/"
End If

' Map the "UserFiles" path to a local directory.
Dim sUserFilesDirectory
sUserFilesDirectory = Server.MapPath( sUserFilesPath )

If ( Right( sUserFilesDirectory, 1 ) <> "\" ) Then
sUserFilesDirectory = sUserFilesDirectory & "\"
End If
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

Post by aostad »

Never mind. I got my answer.

There are some configurations that mentioned in "fckeditor user manual".The default configuration is for "ASP" and should be changed to work with "PHP".
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

more than documentation, we have added in doc folder of TL installation a text file with config options for FCKeditor
clarkpd6
TestLink user
Posts: 5
Joined: Thu Jul 30, 2009 2:54 am

Having same problem

Post by clarkpd6 »

I am having exactly the same problem, however I have applied all the suggested changes to the config files.

Still occuring. Looks like I am missing one file that is not documented???

Any suggestions would be greatly appreciated.
Julian
Advanced user
Posts: 28
Joined: Thu Apr 23, 2009 2:48 pm

Post by Julian »

i got this running within 30 minutes.
To get the changes applied i had to clear the browser cache or/and cookies.

Maybe you didnt set the right path ?
i set the path to:
// Path to uploaded files relative to the document root.
$Config['UserFilesPath'] = '/upload_area/fckeditor_upload_area/' ;
clarkpd6
TestLink user
Posts: 5
Joined: Thu Jul 30, 2009 2:54 am

Thanks

Post by clarkpd6 »

I changed the path and cleared the cache and cookies, all worked fine.

Thanks a million :D .
Locked