I've got an image, let's say in http://localhost/myapp/uploads/image.jpg
.
And i've got a script that pulls this image for display on the home page, like so:
<img src="<? echo base_url().'uploads/.$filename ; ?>
That eventually puts out the following HTML:
<img src="http://localhost/myapp/uploads/image.jpg">
Now, when I access the folder in windows explorer, I can clearly see the image there.
However, when trying to show it using the link as specified above - it throws a 404.
A few things:
- My
base_url()
is set correctly. - The apache error log doesn't show the action.
- The Apache Access log, however, shows the the following:
"GET /myapp/uploads/image.jpg HTTP/1.1 " 404 1175
I'm confused as to what exactly went wrong in here.