Drag and drop directory location incorrect

What I’m trying to do

I’m trying to understand why images I drag and drop from my local PC to my notes don’t get stored in my nominated images folder, but are being placed in the ./Config/Desktop folder.

I can access this directory and manually move the files to the nominated images folder and then I can use them in notes, but I cant work out why they arent being automatically placed in the images folder, but are being placed in the Desktop folder

Things I have tried

I’ve checked permissions, all is fine
I’ve checked the “Default location for new attachments” - this is set to the right directory

1 Like

Do you see the same behavior after turning on Settings > Community Plugins > Restricted Mode?

Thanks for the quick reply - just checked that and restricted mode was off, so I enabled it - tried another drag and drop and it went to the same ./config folder and not the images folder

Strange! Is the folder inside your vault? And either way, what is its purpose? (Maybe that will give some clue.)

sounds like a Linux thing? Are you using Linux by chance?

I vaguely recall seeing drag&drop issues with some Linux-Obsidian versions and/or different desktop environments. You could have a search for your specific combo.

If you are using Windows, disregard this.

No, tne for where the images get put is in the root of the druve, completely outside of the vault

Yes it’s a countainer running on ubuntu

Possibly relevant:

the Flatpak (linux) version needs Session Bus access in order to do the drag & drop (Discord)

1 Like

I’ll explore that option, but the drag and drop is working - files are being uploaded, just not to the right location - it’s a weird thing, that I cant get my head round.

My investigations have identified that the files are being uploaded to the home folder of the root user, and not the folder specified in the obsidian settings

Systemic things to consider:

  • Is your vault in the same directory as your Obsidian installation?
  • Are vault, installation, or original images on a removable drive?
    • If yes, then does it work when everything is on the same drive?
  • Do your OS or any apps have something set up to auto-direct imported images to a certain directory?
  • When you drag another file type, such as a PDF, into a note, does that land in the attachments directory that you set?

In case it’s not a systemic issue, there might be clues in the paths.

  • What’s your vault folder’s path?
  • What path do you have in Settings > Files and Links > Attachment folder path?
  • What’s an full file name of one of the nomadic images?
  • From where are you dragging the images?
1 Like
  • Is your vault in the same directory as your Obsidian installation?
    yes
  • Are vault, installation, or original images on a removable drive?
    No - installed on internal drive
    • If yes, then does it work when everything is on the same drive?
  • Do your OS or any apps have something set up to auto-direct imported images to a certain directory?
    No
  • When you drag another file type, such as a PDF, into a note, does that land in the attachments directory that you set?
    No

In case it’s not a systemic issue, there might be clues in the paths.

  • What’s your vault folder’s path?
    /home/mark/vault
  • What path do you have in Settings > Files and Links > Attachment folder path?
    As above except /home/mark/vault/images
  • What’s an full file name of one of the nomadic images?
    image1.jpg
  • From where are you dragging the images?
    From desktop to browser/obsidian note
1 Like

That first one. Your vault is in the installation folder? (the folder where you have Obsidian.exe)

Your paths make me think it’s not, so maybe I didn’t communicate that question clearly. But if it is, then try with your vault in a different location.

Otherwise, your other conditions looks typical so far.

Hoping Session Bus access fixes it.

Really hoping you figure it out. It must be annoying to deal with.

1 Like