From d373eed72888a0be40087f78cc7e3af2432ed2fc Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 10 Nov 2020 11:54:54 +0000 Subject: [PATCH] Added 'test/x-markdown' as accepted mime type for text file uploads. - Legacy-Id: 18671 --- ietf/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ietf/settings.py b/ietf/settings.py index d7b27e6a9..01d443e11 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -697,7 +697,7 @@ DOC_HREFS = { # Valid MIME types for cases where text is uploaded and immediately extracted, # e.g. a charter or a review. Must be a tuple, not a list. -DOC_TEXT_FILE_VALID_UPLOAD_MIME_TYPES = ('text/plain', 'text/markdown', 'text/x-rst') +DOC_TEXT_FILE_VALID_UPLOAD_MIME_TYPES = ('text/plain', 'text/markdown', 'text/x-rst', 'text/x-markdown', ) # Override this in settings_local.py if needed CACHE_MIDDLEWARE_SECONDS = 300 @@ -917,12 +917,13 @@ MEETING_VALID_UPLOAD_MIME_TYPES = { MEETING_VALID_MIME_TYPE_EXTENSIONS = { 'text/plain': ['.txt', '.md', ], 'text/markdown': ['.txt', '.md', ], + 'text/x-markdown': ['.txt', '.md', ], 'text/html': ['.html', '.htm'], 'application/pdf': ['.pdf'], } MEETING_VALID_UPLOAD_MIME_FOR_OBSERVED_MIME = { - 'text/plain': ['text/plain', 'text/markdown', ], + 'text/plain': ['text/plain', 'text/markdown', 'text/x-markdown', ], 'text/html': ['text/html', ], 'application/pdf': ['application/pdf', ], }