Skip to content

Commit

Permalink
Merge pull request #1151 from creative-commoners/pulls/5.12/wrong-max…
Browse files Browse the repository at this point in the history
…-file-size

FIX MAX_FILE_SIZE of the last EditableFileField
  • Loading branch information
GuySartorelli authored Jun 1, 2022
2 parents 52804b0 + 63c6326 commit 7e18097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Model/EditableFormField/EditableFileField.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function getFormField()
$field = FileField::create($this->Name, $this->Title ?: false)
->setFieldHolderTemplate(EditableFormField::class . '_holder')
->setTemplate(__CLASS__)
->setValidator(Injector::inst()->get(Upload_Validator::class . '.userforms'));
->setValidator(Injector::inst()->get(Upload_Validator::class . '.userforms', false));

$field->setFieldHolderTemplate(EditableFormField::class . '_holder')
->setTemplate(__CLASS__);
Expand Down

0 comments on commit 7e18097

Please sign in to comment.