added email extension to allowed list type
This commit is contained in:
@@ -32,7 +32,7 @@ const CORS_ORIGINS = process.env.CORS_ORIGINS
|
||||
// Allowed file extensions for document uploads (documents only, no executables)
|
||||
const ALLOWED_EXTENSIONS = new Set([
|
||||
'.pdf', '.png', '.jpg', '.jpeg', '.gif', '.bmp', '.tiff', '.tif',
|
||||
'.txt', '.csv', '.log',
|
||||
'.txt', '.csv', '.log', '.msg', '.eml',
|
||||
'.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx',
|
||||
'.odt', '.ods', '.odp',
|
||||
'.rtf', '.html', '.htm', '.xml', '.json', '.yaml', '.yml',
|
||||
@@ -45,6 +45,7 @@ const ALLOWED_MIME_PREFIXES = [
|
||||
'application/msword', 'application/vnd.openxmlformats',
|
||||
'application/vnd.ms-', 'application/vnd.oasis.opendocument',
|
||||
'application/rtf', 'application/json', 'application/xml',
|
||||
'application/vnd.ms-outlook', 'message/rfc822',
|
||||
'application/zip', 'application/gzip', 'application/x-7z',
|
||||
'application/x-tar', 'application/octet-stream'
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user