Skip to content

Commit 5970de5

Browse files
Merge pull request #2553 from sfreytag/patch-1
fix(docs): change file type validator example to use MIME type
2 parents aea298b + 675fb8f commit 5970de5

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)