This commit is contained in:
Peter Maquiran
2022-02-07 20:18:48 +01:00
parent 202b430966
commit 0d9adb0bb8
9 changed files with 97 additions and 57 deletions
@@ -455,13 +455,15 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
const formData = new FormData();
formData.append("blobFile", blob);
console.log('formData', formData)
this.wsChatMethodsService.getDmRoom(roomId).send({
file: {
"type": "application/img",
"guid": '',
"image_url": capturedImage
},
temporary: formData,
temporaryData: formData,
attachments: [{
"title": capturedImageTitle ,
"text": "description",
@@ -513,7 +515,6 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
"text": res.data.selected.DocTypeDesc,
"thumb_url": "https://static.ichimura.ed.jp/uploads/2017/10/pdf-icon.png",
}],
temporary: res
})
loader.remove();
@@ -543,7 +544,8 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
"title": file.name ,
"text": "description",
"title_link_download": false,
}]
}],
temporaryData: formData
})
}