Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11207

Send upload form with even-update-area doesn't works

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk, 17.12.01, Release Branch 18.12
    • Fix Version/s: 17.12.01, Upcoming Branch, 18.12.01
    • Component/s: framework
    • Labels:
      None

      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

        Attachments

        1. OFBIZ-11207.patch
          1 kB
          Nicolas Malin

          Activity

            People

            • Assignee:
              nmalin Nicolas Malin
              Reporter:
              nmalin Nicolas Malin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: