fix upload

This commit is contained in:
Peter Maquiran
2024-04-11 17:03:35 +01:00
parent 97eb89eea8
commit ceda431a83
2 changed files with 3 additions and 4 deletions
@@ -116,7 +116,7 @@ export class PublicationsPage implements OnInit {
if (event instanceof NavigationEnd && event.url == pathname) { if (event instanceof NavigationEnd && event.url == pathname) {
console.log('=================', this.publicationFolderService.gotoAction) console.log('=================', this.publicationFolderService.gotoAction)
this.getActions(); this.getActions();
this.checkQueryParameter() // this.checkQueryParameter()
} }
this.intent = window['sharedContent'] this.intent = window['sharedContent']
}); });
@@ -382,7 +382,7 @@ export class PublicationsPage implements OnInit {
modal.onDidDismiss().then(() => { modal.onDidDismiss().then(() => {
this.intent = window["sharedContent"] this.intent = window["sharedContent"]
this.doRefresh(event); // this.doRefresh(event);
this.checkQueryParameter(); this.checkQueryParameter();
}); });
await modal.present(); await modal.present();
@@ -170,9 +170,8 @@ export class PublicationFromMvService {
if(upload) { if(upload) {
this.form.Files = this.form.Files.map((e:PublicationAttachmentEntity) => { this.form.Files = this.form.Files.map((e:PublicationAttachmentEntity) => {
console.log({e})
if(e.FileType == 'video' && e.toUpload) { 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.FileExtension = e.FileExtension || "mp4"
e.Base64 = '' e.Base64 = ''
} }