Unverified Commit aeb5ec7c authored by Djorkaeff Alexandre's avatar Djorkaeff Alexandre Committed by GitHub
Browse files

[FIX] Accept all media types using * (#1770)


Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
parent 5c974990
...@@ -7,7 +7,7 @@ export const canUploadFile = (file, serverInfo) => { ...@@ -7,7 +7,7 @@ export const canUploadFile = (file, serverInfo) => {
return { success: false, error: 'error-file-too-large' }; return { success: false, error: 'error-file-too-large' };
} }
// if white list is empty, all media types are enabled // if white list is empty, all media types are enabled
if (!FileUpload_MediaTypeWhiteList) { if (!FileUpload_MediaTypeWhiteList || FileUpload_MediaTypeWhiteList === '*') {
return { success: true }; return { success: true };
} }
const allowedMime = FileUpload_MediaTypeWhiteList.split(','); const allowedMime = FileUpload_MediaTypeWhiteList.split(',');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment