File upload trigger only when submit element has value "Upload"

Created on 24 October 2018, over 6 years ago
Updated 13 June 2023, almost 2 years ago

Problem/Motivation

The actual version of a module, triggered file upload only for English sites when upload submit element has value "Upload" so for example on different language sites, javascript is not triggered.
The same situation exists during click on "remove button".
When we attach 2 or more drag and drop elements to one webform or attach multiple webforms on one site, every action is attached for every drag and drop element and when we add a file to first one, we trigger upload on all elements.

Proposed resolution

  1. Change the jQuery selector to correct so that file transfers are always triggered.
  2. Change the jQuery selector to correct so that file remove action is triggered on correct file.
  3. Loop per all elements in javascript and attach actions on $(this) element.
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇱Poland lamp5 Rzeszow

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024