# Storing image along with post gives me an error

**URL:** <https://talk.jekyllrb.com/t/storing-image-along-with-post-gives-me-an-error/2851>\
**Category:** Uncategorized\
**Created:** [April 21, 2019, 9:06am UTC](https://talk.jekyllrb.com/t/storing-image-along-with-post-gives-me-an-error/2851 "2019-04-21T09:06:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [April 21, 2019, 9:06am UTC](https://talk.jekyllrb.com/t/storing-image-along-with-post-gives-me-an-error/2851/1 "2019-04-21T09:06:36Z")

</div>

I am trying to store the image used in the blog in the same directory where the blog post it, but netlify is outputting an error.

![image](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/b/b9d077296e2a21298fbfe7c8205a8fca02635846.png)

What’s the better way to fix this error?

I just want to keep the images of the specific blog under the same roof so that it’s easy to recognize which blog post uses which images.

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [April 21, 2019, 4:14pm UTC](https://talk.jekyllrb.com/t/storing-image-along-with-post-gives-me-an-error/2851/2 "2019-04-21T16:14:47Z")

</div>

there has been a few posts about that - if you google it you will come up with a few things - one of which is a plugin that does it:

> **[jekyll-postfiles](https://nhoizey.github.io/jekyll-postfiles/)**
>
> A Jekyll plugin that copies static files from the \_posts to the \_site folder

---

<div class="post-metadata">

**Author:** ![olea](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/olea/32/5328_2.png) [@olea](https://talk.jekyllrb.com/u/olea)\
**Post date:** [April 26, 2019, 8:10am UTC](https://talk.jekyllrb.com/t/storing-image-along-with-post-gives-me-an-error/2851/3 "2019-04-26T08:10:35Z")

</div>

I think it’s not the answer you want but I use a personal convention for this in a dedicated folder named /resources/YYYY-MM-DD/, you know, set the post date as the date path.

I’m using it for a while and not makes me unhappy 🙂

---

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [April 26, 2019, 8:20am UTC](https://talk.jekyllrb.com/t/storing-image-along-with-post-gives-me-an-error/2851/4 "2019-04-26T08:20:50Z")

</div>

So you mean to say you are organizing your assets by dates.

---

<div class="post-metadata">

**Author:** ![olea](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/olea/32/5328_2.png) [@olea](https://talk.jekyllrb.com/u/olea)\
**Post date:** [April 26, 2019, 9:17am UTC](https://talk.jekyllrb.com/t/storing-image-along-with-post-gives-me-an-error/2851/5 "2019-04-26T09:17:12Z")

</div>

Exactly, yes.

// …
