Commit 8b9d80a0 authored by catch's avatar catch

Issue #3089697 by alexpott, swentel: Regression due to...

Issue #3089697 by alexpott, swentel: Regression due to File::setValidationRequired in _file_save_upload_single()

(cherry picked from commit 323aeb61)
parent b2327814
......@@ -999,9 +999,6 @@ function _file_save_upload_single(\SplFileInfo $file_info, $form_field_name, $va
$values['filemime'] = \Drupal::service('file.mime_type.guesser')->guess($values['filename']);
$file = File::create($values);
// Ensure that the file object is validated.
$file->setValidationRequired(TRUE);
$extensions = '';
if (isset($validators['file_validate_extensions'])) {
if (isset($validators['file_validate_extensions'][0])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment