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.
I found that functionality of disallow file formats doesn't work if file upload field allows multiple values. It requires some corrections in module fff and maybe even in Drupal Core.
Comments
Comment #2
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commentedComment #4
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commentedI've corrected this problem but for each render of the element will be notice
Notice: Undefined offset: 0 in template_preprocess_file_upload_help() (line 186 of core/modules/file/file.field.inc).
It can be solved in related issue #2594389.
If somebody can propose an alternative solution, I would be happy!