From 9d84ac5ec1cb0babf385392e8081717cdd2b6b66 Mon Sep 17 00:00:00 2001 From: kukhariev Date: Wed, 31 Aug 2022 19:11:18 +0300 Subject: [PATCH] fix: keep partially uploaded files Do not delete a partially uploaded file when closing the upload page fixes #5078, #4432 --- .../+video-edit/video-add-components/video-upload.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 66a3967c717..4a100a3909c 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 @@ -96,7 +96,7 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy } ngOnDestroy () { - this.cancelUpload() + this.resumableUploadService.disconnect(); } canDeactivate () {