From aeb5ec7c6ecee823a79b227be349e4d550e48d50 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Fri, 21 Feb 2020 13:02:12 -0300 Subject: [PATCH] [FIX] Accept all media types using * (#1770) Co-authored-by: Diego Mello --- 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(',');