[ https://issues.apache.org/jira/browse/OFBIZ-11207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Malin updated OFBIZ-11207: ---------------------------------- Attachment: OFBIZ-11207.patch > Send upload form with even-update-area doesn't works > ---------------------------------------------------- > > Key: OFBIZ-11207 > URL: https://issues.apache.org/jira/browse/OFBIZ-11207 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Trunk, Release Branch 18.12 > Reporter: Nicolas Malin > Assignee: Nicolas Malin > Priority: Major > Attachments: OFBIZ-11207.patch > > > When you create a xml form with upload as type, you can't use > on-event-update-area element to submit it by ajax. > Otherwise, OFBiz return an error message on 'uploadFile is empty.' > To solve it, Samuel Tregouet suggest to analyse the enctype's form before > submit to move on FormData instead a direct serialize [1] > {code} > <form name="AddNicelyFile" type="upload" target="CreateNicelyFile"> > ... > <on-event-update-area event-type="submit" area-id="window" > area-target="FileDisplaying"/> > {code} > [1] > https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects -- This message was sent by Atlassian Jira (v8.3.4#803005)