Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Try following
Create a new content time
- Add a field (field_files_1) - and set Number of values to anything bigger than 1 (eg. unlimited)
- Add another field (field_files_2) - and set Number of values to 1.
Create a new node.
Upload at least 2 files in field_files_1. And upload 1 file ind field_files_2. When you submitting (or previewing) the form - only the latest upload in field_files_1 are saved.
However - if you don't upload anything to field_files_2 all files in field_files_1 are saved.
It seems that multiple file uploads in the same node form are conflicting someway.
/Johan
Comments
Comment #1
pingers CreditAttribution: pingers commentedConfirmed. I.e. followed the steps and could reproduce the exact behaviour described on 7.x-dev.
Now why? :)
After editing the content type and uploading the second file a second time, it saved correctly.
Setting to 8.x-dev as that's where bugs are fixed.
Comment #2
catchSee #1059268: Files are lost when adding multiple files to multiple file fields at the same time.