Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed: Send upload form with even-update-area doesn't work
(OFBIZ-11207) 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, we analyze the enctype's form before submit it to move on FormData instead a direct serialize [1] example form where the problem has been present **** <form name='AddNicelyFile' type='upload' target='CreateNicelyFile'> <field name='uploadedFile' title='File'><file/></field> <field name='addButton'><submit/></field> <on-event-update-area event-type='submit' area-id='window' area-target='FileDisplaying'/> </form> **** Thanks to Samuel Tregouet for this fix [1] https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867435 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
with
18 additions
and 2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters