images wont load (html, javascript, node.js, express)
Im working on a project and the user uploads their images (path is saved in mysql) and the image itself is saved in a directory named uploads. I have my html css and js files stored in /var/www/html
and my node.js file in /var/www/example/server.js
and my uploads directory in /var/www/example/uploads
. Ive been troubleshooting for hours and even asked chatgpt and i cant figure out what this issue is. ive tried changing the path, chmod 755, adding stuff to the apache config and the .htaccess, and probably more. i verified that these images exist and that they load properly when adding them to a straight up html page. i have no idea what im doing wrong. the node server file and the uploads directory are both stored in the same directory. but i still keep getting this error in console:
Node.js related issue, only works fine when the HTML file and node.js are in same server
I’m a rookie at coding and using ChatGPT to help create a simple page with a login function. I’ve set up user authentication on a Node.js server.
When I try to launch the html address of the app it does not got triggered in the browser while on the terminal it does
I was working an app on the visual studio code. But don’t know suddenly when I try to run the code it works fine on the terminal but in the case of the browser it just did not triggered. I even tried to uninstall and install the VScode but nothing happened. Can somebody help me regarding this. I have been trying this for the last few days
Images Is not Displaying Dynamically from api
I’m stuck and seriously confused why this is not working and no error is displayed in console.