aboutsummaryrefslogtreecommitdiffhomepage
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
parent0ce8d34ea0992ea24b940cdad5c1de647ddb1261 (diff)
downloadPeerTube-88cfa3e8fa8417f14a905c089e57e1648f5a3846.tar.gz
PeerTube-88cfa3e8fa8417f14a905c089e57e1648f5a3846.tar.zst
PeerTube-88cfa3e8fa8417f14a905c089e57e1648f5a3846.zip
Fix preview upload with capitalized ext
-rw-r--r--client/src/app/shared/shared-forms/reactive-file.component.ts2
-rw-r--r--server/lib/live-manager.ts2
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 {
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
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 {
495 495
496 await federateVideoIfNeeded(fullVideo, false) 496 await federateVideoIfNeeded(fullVideo, false)
497 } catch (err) { 497 } catch (err) {
498 logger.error('Cannot save/federate new video state of live streaming.', { err }) 498 logger.error('Cannot save/federate new video state of live streaming of video id %d.', videoId, { err })
499 } 499 }
500 } 500 }
501 501