mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-16 16:09:31 +00:00
Fixed error that attachment path had to have exactly 2048 chars
This commit is contained in:
parent
8d903c9586
commit
e1090d46e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue