aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-26 09:16:31 +0100
committerChocobozzz <me@florianbigard.com>2021-02-26 09:16:31 +0100
commit88cfa3e8fa8417f14a905c089e57e1648f5a3846 (patch)
tree87d90de8655cf2ca56a8054d29abaf4e03394d4c /client/src
parent0ce8d34ea0992ea24b940cdad5c1de647ddb1261 (diff)
downloadPeerTube-88cfa3e8fa8417f14a905c089e57e1648f5a3846.tar.gz
PeerTube-88cfa3e8fa8417f14a905c089e57e1648f5a3846.tar.zst
PeerTube-88cfa3e8fa8417f14a905c089e57e1648f5a3846.zip
Fix preview upload with capitalized ext
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/shared/shared-forms/reactive-file.component.ts2
1 files changed, 1 insertions, 1 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 {
52 } 52 }
53 53
54 const extension = '.' + file.name.split('.').pop() 54 const extension = '.' + file.name.split('.').pop()
55 if (this.extensions.includes(extension) === false) { 55 if (this.extensions.includes(extension.toLowerCase()) === false) {
56 const message = $localize`PeerTube cannot handle this kind of file. Accepted extensions are ${this.allowedExtensionsMessage}}.` 56 const message = $localize`PeerTube cannot handle this kind of file. Accepted extensions are ${this.allowedExtensionsMessage}}.`
57 this.notifier.error(message) 57 this.notifier.error(message)
58 58