Add support to validate attachment uploads by an external program

This commit is contained in:
Tobias Wolf 2022-08-15 21:09:46 +02:00
parent 91b1713bf7
commit b5d311c00c
9 changed files with 90 additions and 27 deletions

View file

@ -125,6 +125,12 @@ echo -e "\t$ snap set $SNAP_NAME card-opened-webhook-enabled='true'"
echo -e "Disable, default:"
echo -e "\t$ snap unset $SNAP_NAME card-opened-webhook-enabled"
echo -e "\n"
echo -e "Attachments upload validation by an external program. {file} is replaced by the uploaded file. Example: /usr/local/bin/avscan {file}"
echo -e "Enable:"
echo -e "\t$ snap set $SNAP_NAME attachments-upload-external-program='/usr/local/bin/avscan {file}'"
echo -e "Disable, default:"
echo -e "\t$ snap unset $SNAP_NAME attachments-upload-external-program"
echo -e "\n"
echo -e "Attachments upload mime types. Example: image/*,text/*"
echo -e "Enable:"
echo -e "\t$ snap set $SNAP_NAME attachments-upload-mime-types='image/*,text/*'"