mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-24 09:40:28 -06:00
Fix preview upload with capitalized ext
This commit is contained in:
parent
0ce8d34ea0
commit
88cfa3e8fa
@ -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 New Issue
Block a user