When I try to add a multiple field/image field to the collection with an exact number of items (lets say 2 items), the entity add form looks broken, I can't upload the image or file, not only on the field collection fields, any file field or image attached to the original entity.

I tested on a clean installation
Drupal Core: 8.x.1.0
Field Collection: 8.x.1.0-alpha1 and 8.x.1.x-dev

Steps to reproduce
1. Create a new content type
2. Add a image/file field to the content type (this step is not needed, is just to check that breaks the other image fields)
3. Add a field collection to the entity
4. Add a image/file field to the collection (Limited to 2 values)
5. Try to upload any image/file

Comments

juanramonperez created an issue. See original summary.

jmuzz’s picture

Priority: Critical » Normal
Status: Active » Postponed
Related issues: +#2669326: FileWidget inside subform can't find its values

That is a bug in the file module. Try the patch in this issue.

Lets leave this open until they fix it so the patch can be found.

miro_dietiker’s picture

Status: Postponed » Active

The core issue was committed to both 8.1 and 8.2 branch.

This issue needs to be retested. Hope it's fixed.

jmuzz’s picture

Version: 8.x-1.x-dev » 8.x-3.x-dev

Development is moving to 8.x-3.x.

ram4nd’s picture

Status: Active » Closed (won't fix)
Issue tags: -multiple, -image, -file