bug on agenda, publications and refactore send file on chat

This commit is contained in:
Eudes Inácio
2023-12-27 10:28:48 +01:00
parent 2aef1d6030
commit afa1c41021
8 changed files with 19 additions and 16 deletions
@@ -699,6 +699,8 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
source: CameraSource.Camera
});
console.log('FILE CHAT',file)
const imageBase64 = 'data:image/jpeg;base64,' + file.base64String
const blob = this.dataURItoBlob(imageBase64)
@@ -867,7 +869,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
console.log('BLOB BLOB', blob)
formData = new FormData();
formData.append('blobFile', blob);
formData.append('blobFile', file);
/* console.log('add file', fileBase64) */
} else {
@@ -876,7 +878,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
fileBase64 = await this._getBase64(file)
formData = new FormData();
formData.append('blobFile', blob);
formData.append('blobFile', file);
}