This is my image JSON which is returned from filereader. I'm using multer in backend to upload image.
Asked
Active
Viewed 83 times
0
-
The error seems pretty clear to me. How exactly can we help you? – Felix Kling Oct 20 '21 at 08:10
-
You might wanna provide the code you are using and maybe some more info of the failed request – flx Oct 20 '21 at 08:11
-
How can I upload the image? It just returns that error and when I check console.log(req.body), it shows image: [object, object] @FelixKling – Kusal Lamsal Oct 20 '21 at 08:12
-
Maybe this helps: [How do you send images to node js with Axios?](https://stackoverflow.com/q/39663961/218196) – Felix Kling Oct 20 '21 at 08:16
-
I'm using this as my multi step form https://codesandbox.io/s/react-multi-step-file-upload-with-preview-formik-9g6n4 But image don't get uploaded to my backend and returns above question mentioned error.. @FelixKling – Kusal Lamsal Oct 20 '21 at 08:32