mirror of https://github.com/Chocobozzz/PeerTube
Try to fix Mac video upload
parent
572b8e02e2
commit
307902e2b3
|
@ -26,8 +26,7 @@ export class AccountsComponent implements OnInit, OnDestroy {
|
|||
private notifier: Notifier,
|
||||
private restExtractor: RestExtractor,
|
||||
private redirectService: RedirectService,
|
||||
private authService: AuthService,
|
||||
private i18n: I18n
|
||||
private authService: AuthService
|
||||
) {}
|
||||
|
||||
ngOnInit () {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -795,7 +795,9 @@ function buildVideoMimetypeExt () {
|
|||
'video/quicktime': '.mov',
|
||||
'video/x-msvideo': '.avi',
|
||||
'video/x-flv': '.flv',
|
||||
'video/x-matroska': '.mkv'
|
||||
'video/x-matroska': '.mkv',
|
||||
'application/octet-stream': '.mkv',
|
||||
'video/avi': '.avi'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue