Add controller and routes to upload images

+ Checks for valid image formats
+ Limits file size
+ Requires authentication
+ Disabled for now
This commit is contained in:
Stephan
2022-05-18 08:27:11 +02:00
committed by La_Felx
parent 323fc396f7
commit bb4f4babce
4 changed files with 122 additions and 3 deletions
+4
View File
@@ -21,6 +21,7 @@
"dependencies": {
"@prisma/client": "^3.3.0",
"@types/handlebars": "^4.1.0",
"@types/express-fileupload": "^1.2.1",
"@types/jsonwebtoken": "^8.5.5",
"@types/mjml": "^4.7.0",
"@types/node": "^16.10.3",
@@ -31,6 +32,9 @@
"express": "^4.17.1",
"handlebars": "^4.7.7",
"express-async-errors": "^3.1.1",
"express-fileupload": "^1.2.1",
"file-type": "^16.5.3",
"is-svg": "^4.3.2",
"jsonwebtoken": "^8.5.1",
"mjml": "^4.11.0",
"nanoid": "^3.3.3",