fix(TaskProcessing): Increase EShapeType::Text limit to 256_000 KB

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2025-12-11 13:05:58 +01:00 committed by backportbot[bot]
parent 82c173b68a
commit b284404698

View file

@ -82,7 +82,7 @@ enum EShapeType: int {
*/
public function validateInput(mixed $value): void {
$this->validateNonFileType($value);
if ($this === EShapeType::Text && is_string($value) && strlen($value) > 64_000) {
if ($this === EShapeType::Text && is_string($value) && strlen($value) > 512_000) {
throw new ValidationException('Text is too long');
}
if ($this === EShapeType::Image && !is_numeric($value)) {