lab4: прямая загрузка, скрипты экспериментов и проверок

This commit is contained in:
2026-10-22 22:39:25 +03:00
parent 7de3012b46
commit 39a6df8c09
12 changed files with 1574 additions and 2 deletions
@@ -0,0 +1,16 @@
import { IsInt, IsString, Matches, Min } from 'class-validator';
export class CreateDirectUploadDto {
@IsString()
filename!: string;
@IsString()
content_type!: string;
@IsInt()
@Min(1)
size_bytes!: number;
@Matches(/^[a-f0-9]{64}$/u)
sha256!: string;
}