This commit is contained in:
parent
747e93768c
commit
9feb89cac0
@ -30,9 +30,9 @@ export class ApiChatService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
sendpic(picToSend: File) {
|
sendpic(picToSend: File) {
|
||||||
const formData = new FormData();
|
const PostPicture = new FormData();
|
||||||
formData.append('file', picToSend, picToSend.name);
|
PostPicture.append('PostPicture', picToSend);
|
||||||
return this.http.post('http://localhost:7141/UploadPic', formData)
|
return this.http.post('http://localhost:7141/UploadPic', PostPicture)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user