Use the current note name in the attachment subfolder name

Came here to post a similar request so shall add mine as a comment: Can we also have a default save location for assets in the settings like we do with the daily notes and new notes.


@barbarianbard are you using “Set as attachment folder”?



In .obsidian/config:

"attachmentFolderPath": "images",

I like how typora keeps assets related to a note in (linked by name) a separate folder.
In note system where you move notes between folders, this helps out a lot in migration.

For e.g. - I put daily notes in Inbox folder then at EOD sort them in respective folders. Although obsidian doesn’t mind it, moving attachments takes care of OCD tick.
In rare case if I delete a note, it will also let me know if any there any lingering attachments left.


Use Case

I use Greenshot a lot when writing articles and copy images to the clipboard before pasting them into the documents I am working on.

Current behavior

  • A generic image name is automatically assigned to the image (With no easy way of renaming the file name afterwards.)
  • Only one asset folder location can be specified

I typically have many images in my documents and putting them all in the one folder gets really messy really quickly. I basically need one image folder per document.

Improvement suggestions

  1. When pasting an image, show the image in a pop-up window and allow the user to name the image and choose the folder it should be stored in.
  2. Allow each markdown document to specify the folder path the images should be saved into, in the YAML frontmatter. (Should be able to work with relative paths to the document location)
  3. A combination of the 2 previous points. (but would be very happy if only point 2 was implemented)


A really seamless way of quickly inserting images into documents and automatically saving them in the correct folder.

Allow the user to name the file as it is pasted into the document or being able to easily rename the file after it is pasted.


Thanks for bringing this up. I agree that this would be very useful. Even having a date-prefix to the pasted image would be more useful than “Pasted image”.


Agree. Good sugestion. I am acostumated to use many images in my notes and so far Obsidian has not reached the sweet spot on this.


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

+1 for image folder based on filename - like Typora


Currently the pasted images get names like “Pasted image.png”.
It would be nice if they could maybe have a name like “2020083101_server.png” or “server_2020083101.png”.
The second one would make it easier to see to which note they belong.
There is a similar thread here: Pasting images


I agree, having a lot of “Pasted” filenames isn’t very handy when attempting to link manually, or find images in the filesystem later.

It would also be nice if you could simply rename the attachments directly from Obsidian, updating the filename, as well as any links.

Edit, I am going to merge these threads, since the feature request is very similar. I suggest adding your vote/discussion to existing threads when possible, rather than starting a new one.


Thanks will do so next time.
I just thought it would be better to open a new feature request because it felt like two different features (file names and the interface for pasting).

Yeah, this existing feature request covers a different range of suggestions. Some of which I disagree with. (I wouldn’t want a pop-up, for example.) But the underlying concern is that pasting images could be improved, and I think your point adds well to this.


I believe you can in fact rename directly from Obsidian - if you put the cursor on the image link and hit alt+enter it will open in a page as if it’s an Obsidian note, and you can change the title and have all links update just like you can with markdown.
It’s more context-switching than it should be, I’d prefer them automatically named based on the ‘parent’ note, but it’s been okay for me for now


:exploding_head: Whoa.

Thanks! I had completely missed that. That is a good enough workaround for me for the time being.

A simple keyboard shortcut like alt-enter that allows renaming without changing notes (similar to the linking tooltip) :+1:

1 Like