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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release Branch 18.12, 17.12.01, Trunk
    • 17.12.01, 18.12.01
    • framework
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: