[FIX] File uploads for unknown file types but nothing is blocked (#18263)

pull/18383/head
CHan Shing Kit 6 years ago committed by GitHub
parent dfeebb8afc
commit 7152ffafe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/utils/lib/fileUploadRestrictions.js

@ -45,7 +45,7 @@ export const fileUploadIsValidContentType = function(type, customWhiteList) {
const blackList = fileUploadMediaBlackList();
const whiteList = fileUploadMediaWhiteList(customWhiteList);
if (!type) {
if (!type && blackList) {
return false;
}

Loading…
Cancel
Save