diff options
author | David Mehren | 2020-12-27 11:31:01 +0100 |
---|---|---|
committer | David Mehren | 2020-12-27 19:51:12 +0100 |
commit | cf4344d9e031d2e0bf70b8d8f75ab27ecf8d29ad (patch) | |
tree | 002d52ce213dd53e1d9b0465e0335bd7d2004cd2 /package.json | |
parent | f83e4d66ed2b6a7f7f8939e2eb63d262387e9374 (diff) |
Improve MIME-type checks of uploaded files
This commit adds a check if the MIME-type of the uploaded file (detected using the magic bytes) matches the file extension.
Signed-off-by: David Mehren <git@herrmehren.de>
Diffstat (limited to '')
-rw-r--r-- | package.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json index e90ec03c..c77045ab 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "express": ">=4.14", "express-session": "^1.14.2", "file-saver": "^1.3.3", + "file-type": "^16.1.0", "flowchart.js": "^1.6.4", "fork-awesome": "^1.1.3", "formidable": "^1.0.17", |