Skip to content

Commit e1090d4

Browse files
committed
Fixed error that attachment path had to have exactly 2048 chars
1 parent 8d903c9 commit e1090d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entity/Attachments/Attachment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ abstract class Attachment extends AbstractNamedDBElement
169169
#[ORM\Column(type: Types::STRING, length: 2048, nullable: true)]
170170
#[Groups(['attachment:read'])]
171171
#[ApiProperty(example: 'http://example.com/image.jpg')]
172-
#[Assert\Length(2048)]
172+
#[Assert\Length(max: 2048)]
173173
protected ?string $external_path = null;
174174

175175
/**

0 commit comments

Comments
 (0)