From ceda431a83a71d0f28d86d3baebbfa9c2fc810d8 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Thu, 11 Apr 2024 17:03:35 +0100 Subject: [PATCH] fix upload --- src/app/pages/publications/publications.page.ts | 4 ++-- .../shared/publication/upload/publication-from-mv.service.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/pages/publications/publications.page.ts b/src/app/pages/publications/publications.page.ts index 1822e4b1e..363a5ff70 100644 --- a/src/app/pages/publications/publications.page.ts +++ b/src/app/pages/publications/publications.page.ts @@ -116,7 +116,7 @@ export class PublicationsPage implements OnInit { if (event instanceof NavigationEnd && event.url == pathname) { console.log('=================', this.publicationFolderService.gotoAction) this.getActions(); - this.checkQueryParameter() + // this.checkQueryParameter() } this.intent = window['sharedContent'] }); @@ -382,7 +382,7 @@ export class PublicationsPage implements OnInit { modal.onDidDismiss().then(() => { this.intent = window["sharedContent"] - this.doRefresh(event); + // this.doRefresh(event); this.checkQueryParameter(); }); await modal.present(); diff --git a/src/app/shared/publication/upload/publication-from-mv.service.ts b/src/app/shared/publication/upload/publication-from-mv.service.ts index 6b61db789..729e347ab 100644 --- a/src/app/shared/publication/upload/publication-from-mv.service.ts +++ b/src/app/shared/publication/upload/publication-from-mv.service.ts @@ -170,9 +170,8 @@ export class PublicationFromMvService { if(upload) { this.form.Files = this.form.Files.map((e:PublicationAttachmentEntity) => { - console.log({e}) if(e.FileType == 'video' && e.toUpload) { - e.OriginalFileName = e?.chucksManager?.path?.replace(".mp4", "") || e.OriginalFileName + e.OriginalFileName = e.chucksManager?.path?.replace(".mp4", "") || e.OriginalFileName e.FileExtension = e.FileExtension || "mp4" e.Base64 = '' }