From 621c7d375880370679d5adaf8307a3e496a9e9c1 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Tue, 12 Nov 2024 11:37:48 +0000 Subject: [PATCH] Restrict document extensions (#1745) --- config/settings/base.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/settings/base.py b/config/settings/base.py index e38f84d4a..71a9c603a 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -308,6 +308,18 @@ } WAGTAILDOCS_DOCUMENT_MODEL = "core.CustomDocument" +WAGTAILDOCS_EXTENSIONS = [ + "pdf", + "xls", + "xlsx", + "doc", + "docx", + "xls", + "xlsx", + "stl", + "txt", + "csv", +] WAGTAILIMAGES_IMAGE_MODEL = "images.CustomImage"