FTP storage adapter

Integrates FTP storage with Payload CMS for remote file management.

Community 1 2/wk MIT v1.0.2

Installation

pnpm add payloadcms-ftp-storage

About

This plugin implements an FTP adapter specifically designed to work with the Payload CMS plugin-cloud-storage. It utilizes the basic-ftp library to handle the file operations over FTP, allowing users to store uploads in a remote server. The integration is straightforward, requiring configuration adjustments in the Payload CMS setup. To use the FTP adapter, you must import it into your Payload CMS configuration file and define it within the cloud storage plugin settings. Users can set parameters like the FTP host, username, password, and target storage endpoint. Files are placed in a directory corresponding to the collection slug, and operations like file upload and deletion are directly reflected in the remote FTP storage. One limitation is that if a file with the same name exists in the remote storage during upload, it will be overwritten. Additionally, files linked to deleted entries in Payload CMS will also be removed from the FTP storage, maintaining a synchronized state.

Package info

Package name
payloadcms-ftp-storage
Latest version
1.0.2
Unpacked size
6 kB
License
MIT
Weekly downloads
2
Last publish
Apr 5, 2024

More from DrMint

View profile

Similar plugins

More in Storage