Skip to content

Commit 675fb8f

Browse files
authored
Fix file type validator example to use MIME type
FileTypeValidator takes a mime type such as `image/jpeg`, but the current example uses just `jpeg`
1 parent 05d6294 commit 675fb8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/file-upload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ To understand how these can be used in conjunction with the beforementioned `Fil
129129
new ParseFilePipe({
130130
validators: [
131131
new MaxFileSizeValidator({ maxSize: 1000 }),
132-
new FileTypeValidator({ fileType: 'jpeg' }),
132+
new FileTypeValidator({ fileType: 'image/jpeg' }),
133133
],
134134
}),
135135
)

0 commit comments

Comments
 (0)