Your sites Log in Sign up Menu

Linking to an image in folder

I've got an jpg image stored in an Images folder and I'd like to reference it in a <img> tag in a post. Everything I've tried has led to a 404 on the image. If I put other (txt) files in that folder I can access them from the browser but my jpg file always shows up as not found.


3 years ago, 2 replies   Improve this question

Disregard this question! I figured it out.

Answered 3 years ago · Improve this answer

Great, for others who come across this question, one thing to double check is that you're resolving your paths correctly when embedding the image.

Blot assumes your blog folder is root, and absolute paths should be within your blog folder.

For example, let's say you have an image _photo.jpg stored directly in your blog folder (i.e. not within a subdirectory). You could embed it from any text file like so:

<img src="/_photo.jpg">
Answered 3 years ago · Improve this answer