diff options
| author | Zephyrrus <[email protected]> | 2021-01-05 00:25:53 +0200 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2021-01-07 10:47:16 +0200 |
| commit | 53f5015c99b3040e955632525bde4ad70250af9a (patch) | |
| tree | e07e259351e7bfe2e9a07ac7bba4fab3db4ed736 /package.json | |
| parent | fix: normalize url and thumbnail response (diff) | |
| download | host.fuwn.me-53f5015c99b3040e955632525bde4ad70250af9a.tar.xz host.fuwn.me-53f5015c99b3040e955632525bde4ad70250af9a.zip | |
feat: check for real mimetype using file-type
For now, if file-type returns undefined, we take the value from the browser. In the future this should be removed to ensure people can't bypass the real mime checking using a special file that can't be recognized by file-type.
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package.json b/package.json index 6e81c4a..f4ec5ae 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "express-rate-limit": "^3.4.0", "ffmpeg-probe": "^1.0.6", "file-saver": "^2.0.1", + "file-type": "^16.1.0", "fluent-ffmpeg": "^2.1.2", "fs-jetpack": "^2.2.2", "helmet": "^3.15.1", @@ -74,6 +75,7 @@ "serve-static": "^1.13.2", "sharp": "^0.27.0", "sqlite3": "^5.0.0", + "systeminformation": "^4.33.8", "uuid": "^3.3.2", "v-clipboard": "^2.2.1", "vue-axios": "^2.1.4", |