We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e019da8 commit dcc177aCopy full SHA for dcc177a
packages/common/pipes/file/file-type.validator.ts
@@ -27,7 +27,7 @@ export class FileTypeValidator extends FileValidator<
27
> {
28
buildErrorMessage(file?: IFile): string {
29
if (file?.mimetype) {
30
- return `Validation failed (detected file type is ${file.mimetype}, expected type is ${this.validationOptions.fileType})`;
+ return `Validation failed (current file type is ${file.mimetype}, expected type is ${this.validationOptions.fileType})`;
31
}
32
return `Validation failed (expected type is ${this.validationOptions.fileType})`;
33
0 commit comments