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

Issue fork webform-3355132

Command icon 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

ryoneadmin created an issue. See original summary.

Anmol_Specbee’s picture

StatusFileSize
new217.54 KB

After 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 to const removedElements = once.remove('webform-auto-file-upload', 'input[type="file"]', context);.
The patch is working as expected, Moving to RTBC.

Anmol_Specbee’s picture

Status: Needs review » Reviewed & tested by the community
gbotis’s picture

The patch is not correctly applied on webform-6.2.0-beta5 version.
Here is a patch that works for me.

cilefen’s picture

Version: 6.2.0-beta5 » 6.2.x-dev
Status: Reviewed & tested by the community » Closed (won't fix)

Just 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.