NestJS - Pipes
Given this pipe code snippet, what will happen if a user uploads a file larger than 1MB?
export class FileValidationPipe implements PipeTransform {
transform(file: Express.Multer.File) {
if (!file) throw new BadRequestException('File is required');
if (file.size > 1_000_000) throw new BadRequestException('File too large');
return file;
}
}