From 350f92365d11ad5f9874f946b033407bb7f34d25 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Fri, 21 Feb 2020 12:40:50 -0300 Subject: [PATCH] [FIX] Accept all media types using * --- app/utils/media.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/media.js b/app/utils/media.js index 42d4a5aec7..0f1e345465 100644 --- a/app/utils/media.js +++ b/app/utils/media.js @@ -7,7 +7,7 @@ export const canUploadFile = (file, serverInfo) => { return { success: false, error: 'error-file-too-large' }; } // if white list is empty, all media types are enabled - if (!FileUpload_MediaTypeWhiteList) { + if (!FileUpload_MediaTypeWhiteList || FileUpload_MediaTypeWhiteList === '*') { return { success: true }; } const allowedMime = FileUpload_MediaTypeWhiteList.split(',');