AnsweredAssumed Answered

Upload web script problem

Question asked by stephane on Oct 10, 2008
Latest reply on Feb 5, 2009 by ivo.costa
Hi,

I'm learning Web Scripts.
So, I've read the tutorial :
http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload
and tested the upload web script implementation.

So, I've a problem when running the application.
The file upload.post.html.ftl appears on the web application
as it :
=================
<html>
<head>
   <title>Upload Web Script Sample</title>
   <link rel="stylesheet" href="/alfresco/css/main.css" TYPE="text/css">
</head>
<body>
   <table>
     <tr>
       <td><img src="/alfresco/images/logo/AlfrescoLogo32.png" alt="Alfresco" /></td>
       <td><nobr>Upload Web Script Sample</nobr></td>
     </tr>
     <tr><td><td>Alfresco Enterprise Network v2.2.0 (159)</td></td></tr>
     <tr><td><td>Uploaded <a href="/alfresco/service/sample/folder/Company Home">upload20_Alfresco_Test.doc</a>
of size 40 960.</td></td></tr>  
   </table>
</body>
</html>
=========================

The Html tags are not interpreted.
A look at the source gives :
"  <pre>&lt;html&gt;<br /> &lt;head&gt; <br />   &lt;title&gt;Upload Web Script Sample&lt;/title&gt;  ….."

So, for instance the  tag "<html>" has been transformed to "&lt;head&gt;"

Do you have any idea of this problem ?

Thank you for your help …


Stéphane

Outcomes