Merge branch 'develop' into pr/1285
This commit is contained in:
commit
b718fd2237
387 changed files with 18290 additions and 10001 deletions
|
@ -88,8 +88,8 @@ function isVideoFileExtnameValid (value: string) {
|
|||
|
||||
function isVideoFile (files: { [ fieldname: string ]: Express.Multer.File[] } | Express.Multer.File[]) {
|
||||
const videoFileTypesRegex = Object.keys(MIMETYPES.VIDEO.MIMETYPE_EXT)
|
||||
.map(m => `(${m})`)
|
||||
.join('|')
|
||||
.map(m => `(${m})`)
|
||||
.join('|')
|
||||
|
||||
return isFileValid(files, videoFileTypesRegex, 'videofile', null)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue