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