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.
Steps to reproduce:
- Perform a fresh install of the latest Drupal 8.x (I'm on 6bcbd0ae)
- Verify that upload on an image field works correctly without changing the cardinality:
- Click "Add new content"
- Click "Article"
- Under "Image" click "Choose file", find a small image (png, gif, jpg, jpeg) and click "Upload"
- The image thumbnail should appear - so image uploading is working!
- Now, navigate to this path on your site: admin/structure/types/manage/article/fields/field_image/field-settings
- Change the "Maximum number of values you can enter" to "Unlimited"
- Navigate back to the article create form: node/add/article
- Under "Image" click "Choose file", use the same images as before and click "Upload"
- The AJAX spinner will appear, go away and the thumbnail WILL NOT appear and the image WILL NOT be uploaded
Strangely, after using the site for a while and adding/removing other fields, this will sometimes start working later. Unfortunately, I haven't been able to recreate the steps required for it to start working.
Comments
Comment #1
dsnopekI kept messing around trying to see what would cause it to start working. The last thing I tried was clearing the cache but I'm not 100% sure this is what did it.
Comment #2
dsnopekGah, apparently, it still doesn't work sometimes. I really don't know why it fails or succeeds...
Comment #3
swentel CreditAttribution: swentel commentedCan't reproduce this on HEAD currently, lot's of fixes have been in the meantime, so I think we're safe. In case you see this happening, try looking into the error.log and see if anything is in there.