Issue #2867336 by mbovan, jcnventura, Berdir, hchonov, gabesullice,...
Issue #2867336 by mbovan, jcnventura, Berdir, hchonov, gabesullice, jonathanshaw: File size validator should only respect the explicitly configured maximum file size
(cherry picked from commit c647ef4d)
@@ -180,7 +180,7 @@ public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
'#type'=>'textfield',
'#title'=>$this->t('Maximum upload size'),
'#default_value'=>$settings['max_filesize'],
'#description'=>$this->t('Enter a value like "512" (bytes), "80 KB" (kilobytes) or "50 MB" (megabytes) in order to restrict the allowed file size. If left empty the file sizes will be limited only by PHP\'s maximum post and file upload sizes (current limit <strong>%limit</strong>).',['%limit'=>format_size(Environment::getUploadMaxSize())]),
'#description'=>$this->t('Enter a value like "512" (bytes), "80 KB" (kilobytes) or "50 MB" (megabytes) in order to restrict the allowed file size. If left empty the file sizes could be limited only by PHP\'s maximum post and file upload sizes (current limit <strong>%limit</strong>).',['%limit'=>format_size(Environment::getUploadMaxSize())]),