Skip to content

Commit 4feb50e

Browse files
committed
Attachments: Aligned attachment validation a little more
1 parent c7e2b48 commit 4feb50e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Exports/ZipExports/Models/ZipExportAttachment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function validate(ZipValidationHelper $context, array $data): arra
4545
$rules = [
4646
'id' => ['nullable', 'int', $context->uniqueIdRule('attachment')],
4747
'name' => ['required', 'string', 'min:1'],
48-
'link' => ['required_without:file', 'nullable', 'string', 'safe_url'],
48+
'link' => ['required_without:file', 'nullable', 'string', 'max:2000', 'safe_url'],
4949
'file' => ['required_without:link', 'nullable', 'string', $context->fileReferenceRule()],
5050
];
5151

0 commit comments

Comments
 (0)