Fixed error that attachment path had to have exactly 2048 chars

This commit is contained in:
Jan Böhmer 2025-12-07 20:34:47 +01:00
parent 8d903c9586
commit e1090d46e3

View file

@ -169,7 +169,7 @@ abstract class Attachment extends AbstractNamedDBElement
#[ORM\Column(type: Types::STRING, length: 2048, nullable: true)]
#[Groups(['attachment:read'])]
#[ApiProperty(example: 'http://example.com/image.jpg')]
#[Assert\Length(2048)]
#[Assert\Length(max: 2048)]
protected ?string $external_path = null;
/**