NestJS - Pipes
Why does this FileValidationPipe code fail to reject files larger than 1MB?
transform(file) {
if (file.size > 1_000_000) {
throw new BadRequestException('File too large');
}
return file;
}