Nextcloud
Nextcloud storage adapter for Payload CMS that uploads files over WebDAV and optionally creates public share links via the Nextcloud OCS API.
Installation
pnpm add payload-nextcloud About
payload-nextcloud is a storage adapter for Payload 3 that routes upload collection files into a Nextcloud instance over WebDAV. It builds on `@payloadcms/plugin-cloud-storage`, supplying a custom adapter that covers upload, delete, URL generation, and a static handler for serving files back through Payload. The adapter authenticates with a Nextcloud username and an app password (recommended over the account password) or token. It derives the WebDAV files root from the configured base URL, defaulting to `/remote.php/dav/files/{username}`, and can scope uploads under a configurable `rootDirectory` such as `/Payload`. Per-collection options let you set a remote directory, toggle URL exposure, and control whether metadata syncs on upload or update. On upload the plugin stores standard WebDAV file properties (file id, path, size, mime type, etag, permissions, last modified, directory flag) on the document and can attempt to create a public share link through the Nextcloud OCS Files Sharing API, writing it to `nextcloud.share_url`. A direct WebDAV URL goes into `nextcloud.webdav_url`. Editable custom metadata can be synced to WebDAV via PROPPATCH using a configurable namespace and field map, and a `sync_status` group tracks the last sync and any errors. The plugin appends these fields to whichever collections you enable in config, keeping the schema intact even when the plugin is disabled so migrations stay consistent. It requires Payload 3.37.0 or newer and pulls in the `webdav` and `@payloadcms/plugin-cloud-storage` packages. For local development with self-signed certificates `verifyTLS` can be turned off, though that should stay out of production.
Package info
- Package name
payload-nextcloud- Latest version
0.1.0- Unpacked size
- 109 kB
- License
- MIT
- Weekly downloads
- 2
- Last publish
- Nov 11, 2025
More from mkhoirulwafa18
View profileSimilar plugins
More in StorageAI Localization
Provides AI-powered content translation for Payload CMS using OpenAI.
AI control panel
A configuration-driven AI control panel for managing Payload CMS content.
Agent
AI chat agent for Payload CMS that works through Telegram, Slack, WhatsApp, and more.
AI Plugin
Integrates AI capabilities for content generation in Payload CMS.
AI
Generates and stores vector embeddings for Payload fields using the OpenAI or NLP Cloud APIs.
AI Completions
Payload plugin that generates field content through OpenAI chat completions from the admin panel.