Fix preview upload with capitalized ext

This commit is contained in:
Chocobozzz 2021-02-26 09:16:31 +01:00
parent 0ce8d34ea0
commit 88cfa3e8fa
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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 })
}
}