Skip to content

Commit

Permalink
user detail
Browse files Browse the repository at this point in the history
  • Loading branch information
XdithyX committed Dec 3, 2022
1 parent 6a0921e commit 813ee7d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/components/Editprofileform/Editprofileform.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,20 @@ function Editprofileform() {


const handleSubmit=(e)=>{

const uploaddata=new FormData()
// uploaddata.append('actual_name',actualname)
uploaddata.append('userimg',userimg)

axiosInstance.post(`${baseUrl}/user-detail/`,{

"actual_name":actualname,
"phno":phno,
"user_image":userimg,
"user_image":uploaddata.userimg,
"user_foreign":localStorage.getItem('userid')

}).then((response)=>{
console.log(response)
})

e.preventDefault();
Expand All @@ -46,14 +53,14 @@ function Editprofileform() {
type="file"
placeholder="pic"
name="name"
value={userimg}
onChange = { (e) => setUserimg(e.target.value)}
accept='.jpg, .jpeg, .png'
onChange = { (e) => setUserimg(e.target.files[0])}

/>
</Form.Group><br/>

<Form.Group>
<h5>Linkedin</h5>
<h5>Phone number</h5>
<Form.Control
type="text"
placeholder="phone number"
Expand Down

0 comments on commit 813ee7d

Please sign in to comment.