Monday 17 June 2019

sending an image from client to server-side in node js

0I am trying to upload an image to the server but keep getting an error in the chrome console "POST http://localhost:3000/images 500 (Internal Server Error) @ main.js:19".it looks like he server side of my application is not receiving the image.when I try to access the file on the server I get undefined([Error: Input file is missing]). When I post using html without the client-side javascript, the image is posted successfully. However, I want to post the image using the client-side js. Can someone help me know what I am doing wrong​​https://i.redd.it/h3phz3m2mz431.png

Submitted June 17, 2019 at 10:46PM by del57748

No comments:

Post a Comment