fix: Parse Server option fileUpload.fileExtensions does not work with an array of extensions (#8688)
This commit is contained in:
committed by
GitHub
parent
c9b59719ec
commit
6a4a00ca7a
@@ -147,7 +147,7 @@ export class FilesRouter {
|
||||
if (ext === '*') {
|
||||
return true;
|
||||
}
|
||||
const regex = new RegExp(fileExtensions);
|
||||
const regex = new RegExp(ext);
|
||||
if (regex.test(extension)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user