Problem/Motivation
I ran into an issue uploading files using webform. Specifically, it's the same issue as described in https://www.drupal.org/project/webform/issues/3335861. It looks like this fix wasn't included in 6.2.0-beta5
Steps to reproduce
See https://www.drupal.org/project/webform/issues/3335861
Proposed resolution
Apply the same solution as https://www.drupal.org/project/webform/issues/3335861
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | webform-replace-jquery-removeonce-3355132.patch | 743 bytes | gbotis |
| #7 | Screenshot 2023-04-20 124848.png | 217.54 KB | Anmol_Specbee |
| replace_jquery_removeOnce.patch | 744 bytes | ryoneadmin |
Issue fork webform-3355132
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #7
Anmol_Specbee commentedAfter applying the patch, the
$(context).find('input[type="file"]').removeOnce('webform-auto-file-upload').each(function () {in js/webform.element.managed_file.js is getting changed toconst removedElements = once.remove('webform-auto-file-upload', 'input[type="file"]', context);.The patch is working as expected, Moving to RTBC.
Comment #8
Anmol_Specbee commentedComment #9
gbotis commentedThe patch is not correctly applied on webform-6.2.0-beta5 version.
Here is a patch that works for me.
Comment #10
cilefen commentedJust to be clear: there is no such thing as patching betas, from the maintainer's perspective. There is nothing for the maintainer to do here. This code has already been included in the main branch.