X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-edit%2Fvideo-add-components%2Fvideo-upload.component.ts;h=8023459453c17328d8bae12875dbca6479b18ef3;hb=8e4aff44b060ec439b04bb2e6904ea03a637db00;hp=efdd284e8adcb1ea42df1e00459fbb8653eda237;hpb=7024e9120b381b5b3201212f5a18f5cdc14e15ff;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts index efdd284e8..802345945 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts +++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts @@ -70,7 +70,7 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy } get videoExtensions () { - return this.serverConfig.video.file.extensions.join(',') + return this.serverConfig.video.file.extensions.join(', ') } ngOnInit () { @@ -108,6 +108,11 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy return this.videofileInput.nativeElement.files[0] } + setVideoFile (files: FileList) { + this.videofileInput.nativeElement.files = files + this.fileChange() + } + getAudioUploadLabel () { const videofile = this.getVideoFile() if (!videofile) return this.i18n('Upload')