Picture Upload beta
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
RakVhalate 2022-11-02 01:39:49 +10:00
parent 747e93768c
commit 9feb89cac0

View File

@ -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)
}
}