]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-forms/reactive-file.component.ts
Refactor actor avatar display
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-forms / reactive-file.component.ts
index eeb2a3fd8fb869c06f9143434e6070ea8b221eb6..fac3dfb3a0f67d9cb34640202417faa39e29311c 100644 (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)