# Markdown images: file location

**URL:** https://discourse.devontechnologies.com/t/markdown-images-file-location/70034
**Category:** Tips
**Created:** [March 14, 2022, 1:36am UTC](https://discourse.devontechnologies.com/t/markdown-images-file-location/70034 "2022-03-14T01:36:43Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![TonyLim](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@TonyLim](https://discourse.devontechnologies.com/u/TonyLim)
#### Post date: [July 9, 2022, 1:28am UTC](https://discourse.devontechnologies.com/t/markdown-images-file-location/70034/3 "2022-07-09T01:28:34Z")

</div>

> [@gg378](#):
>
> The link in the md file will now be an x-devonthink-item link (exception: the md file is also at the root of the DB)

I usually start writing md note in Global Inbox before moving to respective DB. So, that makes the md file at the root of the DB. As such, the image that I paste in the md file is not an x-devonthink-item link. It is a image a relative file path `![MyImage](MyMDImages/E1BBCFE7-02A4-4243-B5D1-4E1C7906D72C_1_105_c.jpeg)`.

In fact, I use tags mostly. So, most of my files are at the root of the DB.

This make the script fails to move the image when I move the md file.

> [@gg378](#):
>
> [this export script](https://discourse.devontechnologies.com/t/markdown-and-store-image/67291/16) by @pete31.

@gg378 any way to overcome this problem?

---

_[View the full topic](https://discourse.devontechnologies.com/t/markdown-images-file-location/70034)._
