Skip to content

Commit

Permalink
DKAN-4278 Remove upload_or_link length validation (#4279)
Browse files Browse the repository at this point in the history
  • Loading branch information
swirtSJW authored Sep 9, 2024
1 parent 46ba5e4 commit 1a993fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/json_form_widget/src/WidgetRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ public function handleUploadOrLinkElement(mixed $spec, array $element) {
if (isset($spec->extensions)) {
$element['#upload_validators']['file_validate_extensions'][] = $spec->extensions;
}
// If a maxlength was set earlier, remove it as it is not allowed here.
unset($element['#maxlength']);
return $element;
}

Expand Down

0 comments on commit 1a993fb

Please sign in to comment.