05-04-2012 02:22 PM
05-08-2012 10:06 AM
05-09-2012 09:21 AM
05-09-2012 10:35 AM
05-23-2012 05:49 AM
<webscript>
<shortname>Upload File </shortname>
<description>Form for uploading file</description>
<!– one of dashlet, site-dashlet or user-dashlet –>
<family>dashlet</family>
<url>/mycompany/components/dashlets/upload</url>
<authentication>user</authentication>
</webscript>
function main()
{
var filename = null;
var content = null;
……..
…….
// create document in folder for uploaded file
var folder = search.findNode(ser);
upload = folder.createFile("upload" + folder.children.length + "_" + filename) ;
……….
………..;
}
main();
but this do not work
the error is
[code]An error has occured in the Share component: /share/page/mycompany/components/dashlets/upload.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 04230005 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/dashlets/upload.post.js': 04230004 ReferenceError: "search" n'est pas défini (file:/C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/upload.post.js#105)
Server: Alfresco Spring WebScripts - v1.0.0 (Release 958) schema 1 000
Time: 23 mai 2012 10:47:21
Click here to view full technical information on the error.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.