Skip to content

Commit

Permalink
deploying to netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
manikandanraji committed Jun 21, 2020
1 parent 9335c6f commit 3de3788
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/NewPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ const NewPost = () => {
data.append("file", e.target.files[0]);
data.append("upload_preset", "instaclone");

// uploadImage({ body: data })
// .then(res => {
// console.log(res.data);
// setPostImage(res.data.secure_url);
// })
// .catch(err => console.log(err));
uploadImage({ body: data })
.then(res => {
console.log(res.data);
setPostImage(res.data.secure_url);
})
.catch(err => console.log(err));
}
};

Expand Down

0 comments on commit 3de3788

Please sign in to comment.