As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<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.