Usage#

Connecting a Nextcloud server profile#

  1. Open Settings → Harang Nextcloud.

  2. Under Add new profile, fill in:

Field

Description

Profile name

A label for this account, e.g. Work or Personal. Used to tell multiple Nextcloud accounts apart, and as the folder-picking prefix described below.

Server URL

The base URL of your Nextcloud instance, e.g. https://cloud.example.com.

  1. Click Log in to connect. Your browser opens the Nextcloud login page; sign in and approve the connection there.

  2. Back in Obsidian, once the login flow completes you’ll see a Nextcloud connection complete notice, and the profile appears in the list with its server URL and account name.

You can add as many profiles as you have Nextcloud accounts. Each profile row also has Reconnect (re-runs the login flow if the app password stops working) and a delete button.

Note

The plugin never asks for or stores your Nextcloud account password directly — it obtains an app password through Nextcloud’s own Login Flow v2 handshake, the same mechanism used by the official desktop and mobile Nextcloud clients.

Uploading attachments straight into a note#

Add an nc-folder frontmatter property to a note to make it an upload target:

---
nc-folder: Work/Projects/Notes
---

The value is <profileName>/<path> — the path is relative to that profile’s Nextcloud files root, and is created automatically if it doesn’t exist yet. If you only have one profile registered, you can omit the profile name and just give the path.

With that property set, pasting one or more non-image files (images still paste as normal Obsidian attachments) uploads each file to that folder and inserts a nextcloud-file block for it — the same block you’d get from pasting an internal link. If a file with the same name already exists in the target folder, an available name is chosen automatically (report (1).pdf, report (2).pdf, …).