lastest changes

This commit is contained in:
Eudes Inácio
2022-01-05 21:27:26 +01:00
parent e934bd7226
commit df76b7538c
3 changed files with 118 additions and 86 deletions
+10 -1
View File
@@ -251,6 +251,10 @@ export class FileService {
this.capturedImage = this.images[0].data
this.capturedImageTitle = new Date().getTime() + '.jpeg';
const formData = new FormData();
formData.append("blobFile", this.capturedImage);
let guid: any = await this.uploadFile(formData).toPromise()
console.log(guid.path);
let body = {
"message":
@@ -261,7 +265,12 @@ export class FileService {
"title": this.capturedImageTitle,
"title_link_download": false,
"image_url": this.capturedImage,
}]
}],
"file":{
"type": "application/img",
"guid": guid.path,
"image_url": ""
}
}
}
console.log('BODY TAKE PICTURE CHAT', body)