Upload content file with upload form and on-event-update-area element ---------------------------------------------------------------------
Key: OFBIZ-4483 URL: https://issues.apache.org/jira/browse/OFBIZ-4483 Project: OFBiz Issue Type: Improvement Components: framework Affects Versions: SVN trunk Reporter: Nicolas Malin Priority: Minor At this time, if you have : {quote} <form target="uploadXXXContent" type="upload"> <field name="uploadedFile" title="${uiLabelMap.CommonUpload}"><file/></field> <on-event-update-area area-target="XXX" event-type="submit" area-id="XXX"/> </form> {quote} The called service have an empty uploadFile. The problem came from ajaxSubmitUpdateAreas that doesn't compliant with "multi-part" To solve it, I added a new jquery plugin : JQuery.upload, create a new javascript function ajaxUploadUpdateAreas and synchronize MacroRenderer. I also add an exemple on myportal with view profile (see image). The upload plugin have a problem with return type : application/x-json, I extend json controller to return a text/html (http://lagoscript.org/jquery/upload/documentation) I analyse sascha jira : OFBIZ-3878. I think it's possible to mixte both issue to have a progressbar when the form is on upload type with js submit, I need more analyse to set good id on js progressbar function. Nicolas -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira