Home > other >  Image displayed locally but not displayed on the server
Image displayed locally but not displayed on the server

Time:02-23

I am using (nodejs, express, multer) & Angular. I am successfully uploading and opening a photo locally, but on the virtual server the photo is uploading but not showing up in the UI. enter image description here

CodePudding user response:

Maybe your image path is set incorrectly. For example "img/img1.jpg" vs "/img/img1.jpg".

The reference to "text/html" maybe suggest you have a server error.

Could you provide us more info?

  • Related