0

hi everybody,

i want to access the images stored in /public/images folder through url,

means if my application is running on port-3000,than i want to access the images folder
using localhost with this port in url.so that i can see any image in that folder just by changing name in url

i tried this(http://localhost:3000/public/images/cap.JPG) but it wont work out for me.

can anybody help me regarding this issue.

thanx in advance,

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by jrichter
0

hi everybody,

i want to access the images stored in /public/images folder through url,

means if my application is running on port-3000,than i want to access the images folder
using localhost with this port in url.so that i can see any image in that folder just by changing name in url

i tried this(http://localhost:3000/public/images/cap.JPG) but it wont work out for me.

can anybody help me regarding this issue.

thanx in advance,

I am sure you have figured this out already, but in case you have not. Simply remove the /public from your url. http://localhost:3000/images/cap.JPG
That should work.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.