The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/app/utils/client/restrictions.ts

9 lines
485 B

import { fileUploadIsValidContentTypeFromSettings } from '../lib/restrictions';
import { settings } from '../../settings/client';
export const fileUploadIsValidContentType = function (type: string, customWhiteList?: string): boolean {
const blackList = settings.get<string>('FileUpload_MediaTypeBlackList');
const whiteList = customWhiteList || settings.get<string>('FileUpload_MediaTypeWhiteList');
return fileUploadIsValidContentTypeFromSettings(type, whiteList, blackList);
};