<commit_before>import _ from 'underscore';

import { settings } from '../../settings';

export const fileUploadMediaWhiteList = function(customWhiteList) {
	const mediaTypeWhiteList = customWhiteList || settings.get('FileUpload_MediaTypeWhiteList');

	if (!mediaTypeWhiteList || mediaTypeWhiteList === '*') {
		return;<commit_msg>Regression: Fix file upload (#14804)<commit_after>import { Meteor } from 'meteor/meteor';
import _ from 'underscore';

let settings;
if (Meteor.isClient) {
	settings = require('../../settings/client').settings;
} else {
	settings = require('../../settings/server').settings;
}

const fileUploadMediaWhiteList = function(customWhiteList) {
	const mediaTypeWhiteList = customWhiteList || settings.get('FileUpload_MediaTypeWhiteList');

	if (!mediaTypeWhiteList || mediaTypeWhiteList === '*') {
		return;
{'fraction_non_alphanumeric': 0.14560770156438027, 'fraction_numerical': 0.006016847172081829, 'mean_word_length': 5.991596638655462, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7306042', 'n_tokens_mistral': 250, 'n_tokens_neox': 232, 'n_words': 49}