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.
parent="baseJavaScriptExtension"
<property name="extensionName" value="myJavaService" />
myJavaService.someMethod(arg1);
Actually, this is impossible due to some bad code in the webscript layer. The layer will automatically process any multi-part field for you, and hide the raw results (including the file). This way, there is no way to access the file through Java without correcting the Alfresco code.What you can also do, is use Java for what you want to use Java for, and then have a very simple piece of javascript handle the file upload. The webscript system will (try to) call the javascript file, even when you have plugged in your Java class.
We are developing our WebScripts using Java (extending AbstractWebScript). We want to implement the same functionality described here:http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Uploadusing Java WebScript. Are there any community provided examples for this?