From 88cfa3e8fa8417f14a905c089e57e1648f5a3846 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Feb 2021 09:16:31 +0100 Subject: [PATCH] Fix preview upload with capitalized ext --- client/src/app/shared/shared-forms/reactive-file.component.ts | 2 +- server/lib/live-manager.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/shared/shared-forms/reactive-file.component.ts b/client/src/app/shared/shared-forms/reactive-file.component.ts index eeb2a3fd8..fac3dfb3a 100644 --- a/client/src/app/shared/shared-forms/reactive-file.component.ts +++ b/client/src/app/shared/shared-forms/reactive-file.component.ts @@ -52,7 +52,7 @@ export class ReactiveFileComponent implements OnInit, ControlValueAccessor { } const extension = '.' + file.name.split('.').pop() - if (this.extensions.includes(extension) === false) { + if (this.extensions.includes(extension.toLowerCase()) === false) { const message = $localize`PeerTube cannot handle this kind of file. Accepted extensions are ${this.allowedExtensionsMessage}}.` this.notifier.error(message) diff --git a/server/lib/live-manager.ts b/server/lib/live-manager.ts index b549c189f..66b5d119b 100644 --- a/server/lib/live-manager.ts +++ b/server/lib/live-manager.ts @@ -495,7 +495,7 @@ class LiveManager { await federateVideoIfNeeded(fullVideo, false) } catch (err) { - logger.error('Cannot save/federate new video state of live streaming.', { err }) + logger.error('Cannot save/federate new video state of live streaming of video id %d.', videoId, { err }) } }