SFTP storage adapter
SFTP adapter for storing files in Payload CMS using cloud storage.
Installation
pnpm add payloadcms-sftp-storage About
The SFTP storage adapter integrates with Payload CMS to store files remotely via SFTP. It acts as an extension of the cloud storage capabilities offered by Payload, allowing users to configure their collections to upload files to external servers. Users can specify connection options such as host, username, and authentication methods, including both private keys and passwords. To configure the SFTP adapter, users will modify their `payload.config.ts`, adding the adapter and specifying options like `destinationPathRoot` for file storage and `publicEndpoint` for accessibility. Files uploaded to a collection will be stored in a predefined directory structure on the remote server, reflecting the collection’s slug in the filepath. If an entry is deleted in Payload, the corresponding file will also be removed from the remote storage. This adapter leverages the `ssh2-sftp-client` for efficient SFTP operations and is compatible with other cloud storage configurations within Payload. Essential configurations can be managed through environment variables, simplifying the integration process.
Package info
- Package name
payloadcms-sftp-storage- Latest version
1.0.1- Unpacked size
- 7 kB
- License
- MIT
- Weekly downloads
- 4
- Last publish
- Apr 6, 2024
More from DrMint
View profileSimilar plugins
More in StorageCloudinary integration
Integrates Cloudinary for media management in Payload CMS.
ImageKit
Sync images to ImageKit storage directly from Payload CMS.
Nextcloud
Nextcloud storage adapter for Payload CMS that uploads files over WebDAV and optionally creates public share links via the Nextcloud OCS API.
ISR revalidation
Integrates ISR-style cache revalidation into Payload CMS for Next.js.
Cloudinary storage adapter
Integrates Cloudinary storage into Payload CMS for media management.
Upstash KV adapter
Integrates Upstash as a key-value storage solution for Payload.