Details
Description
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 Trégouët suggest to analyse the enctype's form before submit to move on FormData instead a direct serialize [1]
<form name="AddNicelyFile" type="upload" target="CreateNicelyFile"> ... <on-event-update-area event-type="submit" area-id="window" area-target="FileDisplaying"/>
[1] https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects