Skip to content

Commit

Permalink
Merge pull request #12772 from pgerundt/3.x
Browse files Browse the repository at this point in the history
BaseFileUpload.php: No custom validation message (for mimetypes)
  • Loading branch information
danharrin committed May 14, 2024
2 parents ff0ac56 + 4ff0662 commit 0522180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/forms/src/Components/BaseFileUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ public function getValidationRules(): array
$validator = Validator::make(
[$name => $files],
["{$name}.*" => ['file', ...parent::getValidationRules()]],
[],
["{$name}.*" => $this->getValidationMessages()],
["{$name}.*" => $this->getValidationAttribute()],
);

Expand Down

0 comments on commit 0522180

Please sign in to comment.