Problem/Motivation

The error messages for the image field (for example when trying to upload an image that's to big) are displayed twice: once above the label and once underneath it.

Proposed resolution

Remaining tasks

User interface changes

API changes

Comments

idebr’s picture

Status: Active » Closed (duplicate)

@ifrik Thanks for your bug report! This issue was reported earlier at #2346893: Duplicate AJAX wrapper around a file field. Could you have a look at the patch and see if solves the issue?

I'll close this issue as a duplicate so we can focus our efforts in the other issue.

ifrik’s picture

Thanks, I will do that.

csardev’s picture

The issue is reproduced in the module file in somewhere is invoked 2 times file_save_upload function () on the file file.module

lorddemon’s picture

this problem has a solution in the link, the patch of comment 40 was tested and works successfully.
https://www.drupal.org/node/2346893

deepakrmklm’s picture

StatusFileSize
new938 bytes

This patch works fine for me in 8.02.

rooby’s picture

anshul.udapure’s picture

Thanks . It worked for me !!

hiramanpatil’s picture

Patch provided in comment #5 worked with Drupal 8.2.6

Thanks

geekinpink’s picture

StatusFileSize
new985 bytes

This patch works for me for Drupal Version 8.3.0 . #5

jbloomfield’s picture

I can confirm that the patch from #5 fixes this issue on Drupal 8.3.7 as well.

josephdpurcell’s picture

I can confirm I am experiencing this issue on Drupal 8.3.5.

The patch in #9 didn't apply for me due to the "docroot" path.

I've submitted the same patch that applies using composer-patches here: https://www.drupal.org/node/2346893#comment-12297126

taggartj’s picture

I can confirm that the patch from #5 fixes this issue on Drupal 8.3.7 as well.

and my production is using https://www.drupal.org/files/issues/duplicate_ajax_wrapper_2346893-217.p...
php 7.1 /postgres