Skip to content

Commit d373eed

Browse files
committed
Added 'test/x-markdown' as accepted mime type for text file uploads.
- Legacy-Id: 18671
1 parent 0bf56c9 commit d373eed

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ietf/settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ def skip_unreadable_post(record):
697697

698698
# Valid MIME types for cases where text is uploaded and immediately extracted,
699699
# e.g. a charter or a review. Must be a tuple, not a list.
700-
DOC_TEXT_FILE_VALID_UPLOAD_MIME_TYPES = ('text/plain', 'text/markdown', 'text/x-rst')
700+
DOC_TEXT_FILE_VALID_UPLOAD_MIME_TYPES = ('text/plain', 'text/markdown', 'text/x-rst', 'text/x-markdown', )
701701

702702
# Override this in settings_local.py if needed
703703
CACHE_MIDDLEWARE_SECONDS = 300
@@ -917,12 +917,13 @@ def skip_unreadable_post(record):
917917
MEETING_VALID_MIME_TYPE_EXTENSIONS = {
918918
'text/plain': ['.txt', '.md', ],
919919
'text/markdown': ['.txt', '.md', ],
920+
'text/x-markdown': ['.txt', '.md', ],
920921
'text/html': ['.html', '.htm'],
921922
'application/pdf': ['.pdf'],
922923
}
923924

924925
MEETING_VALID_UPLOAD_MIME_FOR_OBSERVED_MIME = {
925-
'text/plain': ['text/plain', 'text/markdown', ],
926+
'text/plain': ['text/plain', 'text/markdown', 'text/x-markdown', ],
926927
'text/html': ['text/html', ],
927928
'application/pdf': ['application/pdf', ],
928929
}

0 commit comments

Comments
 (0)