You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (Jira)" <ji...@apache.org> on 2019/09/24 09:04:00 UTC
[jira] [Closed] (OFBIZ-11207) Send upload form with
even-update-area doesn't works
[ https://issues.apache.org/jira/browse/OFBIZ-11207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Malin closed OFBIZ-11207.
---------------------------------
Fix Version/s: 18.12.01
Upcoming Branch
17.12.01
Resolution: Fixed
Commited at :
* trunk 1867435
* 18.12 1867437
* 17.12 1867438
Thanks to Samuel Trégouët for the correction
> 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, 17.12.01, Release Branch 18.12
> Reporter: Nicolas Malin
> Assignee: Nicolas Malin
> Priority: Major
> Fix For: 17.12.01, Upcoming Branch, 18.12.01
>
> 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)