When I'm trying to send a request (POST) with multiple files and I set a custom error message to @IsFiles() decorator, it will cause a 400 bad request error. Request are send here using Postman
@karolmodzelewski Hi, in version 1.9.1 I have added tests to check your ticket. And they pass successfully, could you please test the new version in your environment and report the results?
Hi,
When I'm trying to send a request (POST) with multiple files and I set a custom error message to
@IsFiles()
decorator, it will cause a 400 bad request error. Request are send here using PostmanMy code (DTO):
And when I delete an object with message parameter:
It works perfectly
It also works when I use
@IsFile()
decorator witheach
property like this:@IsFile({ each: true, message: 'IsFile custom error message' })
========
NestJS: 9
nestjs-form-data: 1.8.7