Steps to reproduce:

  1. clean 8.2 drupal standard profile installation
  2. download and enable paragraphs module (and its dependencies)
  3. download and enable filefield_sources module
  4. create a paragraph type at admin/structure/paragraphs_type
  5. manage it fields, adding a multi-value file field with some file field sources (reference autocomplete tested)
  6. add paragraph field reference to the page content type (enable the previously created paragraph type)
  7. create new page content at node/add/page, add one paragraph, upload some regular files and save
  8. 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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

manuel.adan created an issue. See original summary.

stomusic’s picture

Priority: Normal » Critical

I 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

jimmynash’s picture

I'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.

nicholasThompson’s picture

I'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.