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
- 21
- Last publish
- Apr 6, 2024
More from DrMint
View profileSearch plugin
Search plugin for Payload enables fast searching of document records.
Algolia search
Integrates Algolia search with Payload CMS collections.
Typesense
Integrates Typesense search capabilities into Payload CMS with real-time synchronization.
AI
Generates and stores vector embeddings for Payload fields using the OpenAI or NLP Cloud APIs.
Meilisearch
Syncs Payload CMS collection documents to a Meilisearch index via afterChange and afterDelete hooks.
Similar plugins
More in StorageCloud
Connects a Payload instance to Payload Cloud's managed S3 storage, Cloudflare CDN upload caching, and Resend email delivery.
Cloud Storage
This plugin integrates cloud storage options into Payload CMS.
Bunny Storage Adapter
Bunny.net storage and stream adapter for Payload CMS with TUS resumable uploads and CDN cache purging.
FTP storage adapter
Integrates FTP storage with Payload CMS for remote file management.
Cloudinary integration
Integrates Cloudinary for media management in Payload CMS.
ImageKit
Sync images to ImageKit storage directly from Payload CMS.