NestJS - Pipes
What will happen when this
FileValidationPipe processes a file larger than 1MB?transform(file) {
if (file.size > 1024 * 1024) {
throw new BadRequestException('File too large');
}
return file;
}