diff --git a/src/app/send-post/send-post.component.ts b/src/app/send-post/send-post.component.ts index eaf252d..083ede4 100644 --- a/src/app/send-post/send-post.component.ts +++ b/src/app/send-post/send-post.component.ts @@ -28,9 +28,9 @@ export class SendPostComponent implements OnInit { sendPic(event: any) { this.apiChatService.sendpic(event.target.files[0]).subscribe( response => { - this.picResponse = response + this.filename = response.value.toString() }); - this.filename = this.picResponse.value.toString() + //this.filename = this.picResponse.value.toString() } ngOnInit(): void {