Fix preview upload with capitalized ext
This commit is contained in:
parent
0ce8d34ea0
commit
88cfa3e8fa
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue