
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
@payloadcms/plugin-cloud-storage
Advanced tools
This repository contains the officially supported Payload Cloud Storage plugin. It extends Payload to allow you to store all uploaded media in third-party permanent storage.
1.0.16 or higher is requiredInstall this plugin within your Payload as follows:
import { buildConfig } from 'payload/config';
import path from 'path';
import { cloudStorage } from '@payloadcms/plugin-cloud-storage';
export default buildConfig({
plugins: [
cloudStorage({
collections: [{
slug: 'my-collection-slug',
adapter: theAdapterToUse, // see docs for the adapter you want to use
}]
}),
],
// The rest of your config goes here
});
Adapter-based Implementation This plugin supports the following adapters:
However, you can create your own adapter for any third-party service you would like to use.
This plugin is configurable to work across many different Payload collections. A * denotes that the property is required.
| Option | Description |
|---|---|
[collections] * | Array of collection-specific options to enable the plugin for. |
| Option | Description |
|---|---|
[slug] * | The collection slug to extend. |
[disableLocalStorage] | Choose to disable local storage on this collection. Defaults to true. |
[adapter] | Pass in the adapter that you'd like to use for this collection. |
To use the Azure Blob Storage adapter, you need to have @azure/storage-blob installed in your project dependencies. To do so, run yarn add @azure/storage-blob.
From there, create the adapter, passing in all of its required properties:
import { azureBlobStorageAdapter } from '@payloadcms/plugin-cloud-storage';
const adapter = azureBlobStorageAdapter({
connectionString: process.env.AZURE_STORAGE_CONNECTION_STRING,
containerName: process.env.AZURE_STORAGE_CONTAINER_NAME,
allowContainerCreate: process.env.AZURE_STORAGE_ALLOW_CONTAINER_CREATE === 'true',
baseURL: process.env.AZURE_STORAGE_ACCOUNT_BASEURL,
})
// Now you can pass this adapter to the plugin
Important: make sure you have all of the above environment variables filled out and that they reflect your Azure blob storage configuration.
This repository includes a local development environment for local testing and development of this plugin. To run the local sandbox, follow the instructions below.
yarn in both the root folder of the repo, and the ./dev foldercd into ./dev and run cp .env.example .env to create an .env file./dev/.env file and completely fill out each propertyyarn dev within the /dev folderhttp://localhost:3000/admin in your browserPlease contact Payload with any questions about using this plugin.
FAQs
The official cloud storage plugin for Payload CMS
The npm package @payloadcms/plugin-cloud-storage receives a total of 59,677 weekly downloads. As such, @payloadcms/plugin-cloud-storage popularity was classified as popular.
We found that @payloadcms/plugin-cloud-storage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.