Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Steps to reproduce:
- clean 8.2 drupal standard profile installation
- download and enable paragraphs module (and its dependencies)
- download and enable filefield_sources module
- create a paragraph type at admin/structure/paragraphs_type
- manage it fields, adding a multi-value file field with some file field sources (reference autocomplete tested)
- add paragraph field reference to the page content type (enable the previously created paragraph type)
- create new page content at node/add/page, add one paragraph, upload some regular files and save
- edit the created page and try to add some existing files into paragraphs file field. After acting on select button the entire file field will reset (new and all existing file entries are lost)
Demo video attached.
Comment | File | Size | Author |
---|---|---|---|
file_field_sources_in_multi_file_paragraphs_field_bug.mp4 | 487.48 KB | manuel.adan |
Comments
Comment #2
stomusicI think this bug is critical for stability and usability of this module. I tried to fix it, but I coudn't do it. Can anybody help with this issue? As I saw, it has some problems with current values logic in this case, because at core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php:121 we have empty #items
Comment #3
jimmynash CreditAttribution: jimmynash commentedI'm seeing exactly the same issue with a multiple file field in a paragraph using the remote url source.
Ajax spinner fires then goes away. The file does end up on the filesystem though so i know the transfer takes place.
It just doesn't ever finish the display change in the field widget. Acts like nothing happened.
Comment #4
nicholasThompsonI'm also seeing this bug; an identically configured field directly on the node works fine. When I reference an existing file on a paragraph, I select it and it appears to AJAX and "work" (no errors) but the file is not attached.