mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
try to solve the add file on chat
This commit is contained in:
@@ -779,7 +779,9 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
||||
const blob = await response.blob();
|
||||
|
||||
const formData = new FormData();
|
||||
console.log('add file', formData)
|
||||
formData.append("blobFile", blob);
|
||||
console.log('add file', formData)
|
||||
|
||||
this.ChatSystemService.getDmRoom(roomId).send({
|
||||
file: {
|
||||
@@ -843,8 +845,8 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
||||
|
||||
|
||||
const formData = new FormData();
|
||||
console.log('add file', formData)
|
||||
formData.append('blobFile', blob);
|
||||
console.log('add file', fileBase64)
|
||||
|
||||
this.ChatSystemService.getDmRoom(roomId).send({
|
||||
file: {
|
||||
|
||||
Reference in New Issue
Block a user