cancel
Showing results for 
Search instead for 
Did you mean: 

Upload web script problem

stephane
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

ivo_costa
Champ in-the-making
Champ in-the-making
Hi Stéphane…

Am I right tio asume that you used the inline editor with content of type html?
if that is the case, what you typed was converted to pure text using the <pre> tag

there is a button at the toolbar that reads html, that will allow you to get to the real source of the content