Add support to validate attachment uploads by type and size

This commit is contained in:
Tobias Wolf 2022-08-03 12:53:07 +02:00
parent 26f8df2995
commit ed3223fedc
11 changed files with 5810 additions and 50 deletions

View file

@ -266,6 +266,10 @@ services:
# https://github.com/wekan/wekan/issues/2518
- CARD_OPENED_WEBHOOK_ENABLED=false
#---------------------------------------------------------------
# ==== Allow configuration to validate uploaded attachments ====
#-ATTACHMENTS_UPLOAD_MIME_TYPES=image/*,text/*
#-ATTACHMENTS_UPLOAD_MAX_SIZE=5000000
#---------------------------------------------------------------
# ==== Allow to shrink attached/pasted image ====
# https://github.com/wekan/wekan/pull/2544
#-MAX_IMAGE_PIXEL=1024