No remove button and strange tooltip when using the dropzone Element

Created on 28 April 2021, over 3 years ago
Updated 11 February 2023, almost 2 years ago

In a custom form, I have added a dropzone element using the following code:

    $form['dz'] = [
      '#title' => $this->t('Codas'),
      '#type' => 'dropzonejs',
      '#required' => TRUE,
      '#max_filesize' => '200KB',
      '#extensions' => 'COD',
      '#max_files' => 30,
      '#clientside_resize' => TRUE,
    ];

Il the following screenscapture, you will see that there is no way to remove an uploaded file (no delete button) and the tooltip is full of html comments.

Last but not least, I can add the same file twice and more.

🐛 Bug report
Status

Fixed

Version

2.5

Component

Code

Created by

🇧🇪Belgium DuneBL

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