Skip to content

Commit

Permalink
[FIX] Accept all media types using * (#1770)
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Mello <diegolmello@gmail.com>
  • Loading branch information
djorkaeffalexandre and diegolmello authored Feb 21, 2020
1 parent 5c97499 commit aeb5ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(',');
Expand Down

0 comments on commit aeb5ec7

Please sign in to comment.