Problem/Motivation
With Drupal 11.1.8 getting the following error when adding the JSON key file at /admin/tmgmt/translators/manage/google_v3
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "file_validate_extensions" plugin does not exist. Valid plugin IDs for Drupal\Core\Validation\ConstraintManage
See this issue https://www.drupal.org/node/3363700 where
'#upload_validators' => [
'file_validate_extensions' => ['json'],
],
is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0.
Steps to reproduce
See above.
Proposed resolution
Use
'#upload_validators' => [
'FileExtension' => ['extensions' => 'json'],
],
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #3
kamkejj commentedupdate attribution
Comment #4
kallado commentedThank you I've been on a really tight schedule I hava a couple of features also pending. I'll see if can make another version ASAP.
Comment #5
kallado commentedComment #6
kallado commentedFixed n 1.0.4