Choose path when pasting images

Hi all, I would find it very useful to have an attachment folder per topic in a particular vault. For example Vault 1 has four separate topic folders. I would like to see an attachment folder for each of the four separate topics – they are different historical eras.
Trust this makes sense and meets wil approval, but if it is not possible, this is still an amazing software package. Thank you very much.


Agree, it’s unsolved problem. Not sure if there’s one-size-fits-all approach.

Providing more configurable options would be a positive development though. Being able to define default folders depending on where in the folder structure one is, would be a welcome improvement.


ZimDesktopWiki put attachments to a separate folder for each note. I checked it again and its very similar to Obsidian and more.


In terms of UX, something that could be done is just keep the same input and allow for the user to put a relative path or an absolute path.

For example:


Would be in the root, while:




Would be relative.

yep relative folders would work for me as well

especially if ./ is allowed - eg save image in same path as note.

Heres a related post with some
more suggestions to follow typoras approach as well

1 Like

I never expected this request of mine to be my most popular forum post. :man_shrugging:t2:

I read the thread about open sourcing obsidian and read a very good reply by @Silver on aligning incentives.

So I think I will put up money where my mouth is. I will donate 50 USD for every feature below that is possible.

  1. Upon copy paste an image to a ${filename}.md, and the image can go to ./${filename}.assets
  2. Upon copy paste an image to a ${filename}.md, and the image can go to current folder (./)
  3. I can choose to apply the copy paste rule to in an exclusive OR manner i.e. local images XOR online images

Hope this helps

Tagging @Silver, @Licat who I think are the obsidian team


I need this feature too. Has it been already added?

1 Like

This would be really fantastic. If images (and other files) were automatically copied to ${filename}.assets/ and then linked with a relative path in the .md file, the note would finally open seamlessly in other markdown editors and on other computers (like if the project directory was in dropbox).

1 Like

+1 would also really love to see this!

I gave this a go using the Templater plugin. It’s a hacky solution for my specific use case but it is working well for me.


@dae @kimstacks
I developed a plugin which allow users to modify attachment folder path and pasted image name with variables(i.e ${filename}, ${date}).

Don’t forget to STAR me if you like it :grinning_face_with_smiling_eyes:.


The plugin only work with obsidian newer than v0.12.17. (Current stable version is v0.12.15, insider v.0.12.19). It’s possible to support older version (just hook cm.__handler.paste) but the solution is not that stable.


I don’t understand what you mean. Maybe I can help you. You can donate me and I donate obsidian then I will upgrade to “VIP”. :upside_down_face:


@RainCat : Thank you for the plugin! It works very well and is exactly what I needed!!!

I also like to note that the default obsedian file naming causes problems with nextcloud. The Nextcloud web ui does currently not display internal images in md files if the url contains spaces or other characters that are html encoded.