Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix preview upload with capitalized ext

Chocobozzz88cfa3e8fa84
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 eeb2a3fd8f..fac3dfb3a0 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 b549c189f5..66b5d119bd 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 })
}
}