Download Attachments via API

Is there a way to download attach files with the API?

1 Like

I haven’t seen such a thing, but you can make the links publically accessible to those who have the long URL

2 Likes

Your screen shot says this will only apply to future uploads. The reason I was asking is I’m working on a Dynalist to Obsidian migration script and I would like this to also be able to migrate files.

You’ll need to download the files. So, I guess I’d use a python web scraper if I were you. One that can use the chrome login cookies so you dont get a 403 error.

Open Upload Manager (in the corner menu hamburger)

Download each file, renaming according to their URL
(i.e. https: //dynalist. io/u/ha0KGJpWsdfasdfsadfsahAFwxF saves as ha0KGJpWsdfasdfsadfsahAFwxF.jpg wherever images are in the Obsidian vault

Replace All “https: //dynalist. io/u/” to be local://file:///ha0KGJpWsdfasdfsadfsahAFwxF.jpg or whatever it is Obsidian uses, I forget.