From 88cfa3e8fa8417f14a905c089e57e1648f5a3846 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Feb 2021 09:16:31 +0100 Subject: Fix preview upload with capitalized ext --- client/src/app/shared/shared-forms/reactive-file.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/shared') 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) -- cgit v1.2.3