The api data is like this
{
"id": 11,
"About_Me": "Male working for ----" ,
"About_Me_Photo": "http://127.0.0.1:8000/images/personal/aboutme/2021-09-06/15-50-03/1.jpg",
}
For sending the data, service.ts is
individual1(About_Me){
console.log("mf");
let url = this.mf+"rajperson/11/";;
var dec = JSON.parse((localStorage.getItem('token')));
this.hdrs=new HttpHeaders({
Authorization: "Token " + dec,
"Content-Type": "application/json; charset=utf-8",
Accept: "application/json",
})
return this.http.put(url,{About_Me:About_Me,},{headers:this.hdrs});
The code is working fine for data but for image i passed the path which doesn't work. Can any one help me on updating the image using put request.