Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-1891

Race condition in io-upload-iframe causes missing form input(s)

    Details

      Description

      Bug in YUI. Using Chrome, when using io-upload-iframe to submit a form, hidden inputs added to the form are removed before form submission.

      The hidden inputs do need to be removed after submission to prevent these forms from collecting hidden inputs that will lead to incorrect, duplicate, or unnecessary data. Possible solutions: put the cleanup in a timeout or during the complete event.

      When using test.html to submit a file upload, debug io-upload-iframe.js. The actual result is the hidden inputs generated from the data object in test.html request are removed before submitting form.

        Attachments

        1. AUI-1891.html
          1 kB
        2. AUI-1891-v2.html
          1 kB
        3. kayleen-request-header.png
          kayleen-request-header.png
          37 kB
        4. test.html
          0.9 kB
        5. travis' request payload.png
          travis' request payload.png
          152 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 9 weeks, 1 day ago

                  Packages

                  Version Package
                  2.0.x
                  master
                  master-deprecated
                  3.0.x
                  2.0.0.70-deprecated
                  3.1.x