Adds an admin view, default route /explorer, for browsing remote S3-compatible storage such as AWS S3, MinIO or LocalStack. It registers Payload endpoints for listing, presigned upload and download, folder creation and deletion. Behaviour is configured through plugin options and per-operation access callbacks. Requires Payload 3.37 or later.
File explorer for Payload CMS 3.0
Installation
npm i @kfiross44/payload-storage-file-explorer12
Stars
0
Forks
1
Open Issues
4 months ago
Last Updated
32
Weekly Downloads
v1.2.1
npm Version
346.0 KB
Unpacked Size
1
Dependencies
120 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 12 |
| Dec 5, 2026 | 12 |
| Dec 4, 2026 | 12 |
| Dec 3, 2026 | 12 |
| Dec 2, 2026 | 12 |
| Dec 1, 2026 | 12 |
| Nov 30, 2026 | 12 |
| Nov 29, 2026 | 12 |
| Nov 28, 2026 | 12 |
| Nov 27, 2026 | 12 |
| Nov 26, 2026 | 12 |
| Nov 25, 2026 | 12 |
| Nov 24, 2026 | 12 |
| Nov 23, 2026 | 12 |
| Nov 22, 2026 | 12 |
| Nov 21, 2026 | 12 |
| Nov 20, 2026 | 12 |
| Nov 19, 2026 | 12 |
| Nov 18, 2026 | 12 |
| Nov 17, 2026 | 12 |
| Nov 16, 2026 | 12 |
| Nov 15, 2026 | 12 |
| Nov 14, 2026 | 12 |
| Nov 13, 2026 | 12 |
| Nov 12, 2026 | 12 |
| Nov 11, 2026 | 12 |
| Nov 10, 2026 | 12 |
| Nov 9, 2026 | 12 |
| Nov 8, 2026 | 12 |
| Nov 7, 2026 | 12 |
| Nov 6, 2026 | 12 |
| Nov 5, 2026 | 12 |
| Nov 4, 2026 | 12 |
| Nov 3, 2026 | 12 |
| Nov 2, 2026 | 12 |
| Nov 1, 2026 | 12 |
| Oct 31, 2026 | 12 |
| Oct 30, 2026 | 12 |
| Oct 29, 2026 | 12 |
| Oct 28, 2026 | 12 |
| Oct 27, 2026 | 12 |
| Oct 26, 2026 | 12 |
| Oct 25, 2026 | 12 |
| Oct 24, 2026 | 12 |
| Oct 23, 2026 | 12 |
| Oct 22, 2026 | 12 |
| Oct 21, 2026 | 12 |
| Oct 20, 2026 | 12 |
| Oct 19, 2026 | 12 |
| Oct 18, 2026 | 12 |
| Oct 17, 2026 | 12 |
| Oct 16, 2026 | 12 |
| Oct 15, 2026 | 12 |
| Oct 14, 2026 | 12 |
| Oct 13, 2026 | 12 |
| Oct 12, 2026 | 12 |
| Oct 11, 2026 | 12 |
| Oct 10, 2026 | 12 |
| Oct 9, 2026 | 12 |
| Oct 8, 2026 | 12 |
| Oct 7, 2026 | 12 |
| Oct 6, 2026 | 12 |
| Oct 5, 2026 | 12 |
| Oct 4, 2026 | 12 |
| Oct 3, 2026 | 12 |
| Oct 2, 2026 | 12 |
| Oct 1, 2026 | 12 |
| Sep 30, 2026 | 12 |
| Sep 29, 2026 | 12 |
| Sep 28, 2026 | 12 |
| Sep 27, 2026 | 12 |
| Sep 26, 2026 | 12 |
| Sep 25, 2026 | 12 |
| Sep 24, 2026 | 12 |
| Sep 23, 2026 | 12 |
| Sep 22, 2026 | 12 |
| Sep 21, 2026 | 12 |
| Sep 20, 2026 | 12 |
| Sep 19, 2026 | 12 |
| Sep 18, 2026 | 12 |
| Sep 17, 2026 | 12 |
| Sep 16, 2026 | 12 |
| Sep 15, 2026 | 12 |
| Sep 14, 2026 | 12 |
| Sep 13, 2026 | 12 |
| Sep 12, 2026 | 12 |
| Sep 11, 2026 | 12 |
| Sep 10, 2026 | 12 |
| Sep 9, 2026 | 12 |
| Sep 8, 2026 | 12 |
| Sep 7, 2026 | 12 |
29−10 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 29 |
| Dec 5, 2026 | 17 |
| Dec 4, 2026 | 17 |
| Dec 3, 2026 | 18 |
| Dec 2, 2026 | 16 |
| Dec 1, 2026 | 16 |
| Nov 30, 2026 | 24 |
| Nov 29, 2026 | 24 |
| Nov 28, 2026 | 21 |
| Nov 27, 2026 | 22 |
| Nov 26, 2026 | 21 |
| Nov 25, 2026 | 20 |
| Nov 24, 2026 | 13 |
| Nov 23, 2026 | 20 |
| Nov 22, 2026 | 22 |
| Nov 21, 2026 | 21 |
| Nov 20, 2026 | 19 |
| Nov 19, 2026 | 22 |
| Nov 18, 2026 | 38 |
| Nov 17, 2026 | 42 |
| Nov 16, 2026 | 28 |
| Nov 15, 2026 | 26 |
| Nov 14, 2026 | 35 |
| Nov 13, 2026 | 38 |
| Nov 12, 2026 | 35 |
| Nov 11, 2026 | 21 |
| Nov 10, 2026 | 27 |
| Nov 9, 2026 | 26 |
| Nov 8, 2026 | 26 |
| Nov 7, 2026 | 28 |
| Nov 6, 2026 | 28 |
| Nov 5, 2026 | 31 |
| Nov 4, 2026 | 32 |
| Nov 3, 2026 | 30 |
| Nov 2, 2026 | 32 |
| Nov 1, 2026 | 37 |
| Oct 31, 2026 | 31 |
| Oct 30, 2026 | 33 |
| Oct 29, 2026 | 30 |
| Oct 28, 2026 | 27 |
| Oct 27, 2026 | 23 |
| Oct 26, 2026 | 28 |
| Oct 25, 2026 | 31 |
| Oct 24, 2026 | 31 |
| Oct 23, 2026 | 26 |
| Oct 22, 2026 | 31 |
| Oct 21, 2026 | 52 |
| Oct 20, 2026 | 47 |
| Oct 19, 2026 | 42 |
| Oct 18, 2026 | 37 |
| Oct 17, 2026 | 41 |
| Oct 16, 2026 | 45 |
| Oct 15, 2026 | 52 |
| Oct 14, 2026 | 31 |
| Oct 13, 2026 | 34 |
| Oct 12, 2026 | 37 |
| Oct 11, 2026 | 35 |
| Oct 10, 2026 | 30 |
| Oct 9, 2026 | 33 |
| Oct 8, 2026 | 35 |
| Oct 7, 2026 | 38 |
| Oct 6, 2026 | 40 |
| Oct 5, 2026 | 43 |
| Oct 4, 2026 | 45 |
| Oct 3, 2026 | 45 |
| Oct 2, 2026 | 51 |
| Oct 1, 2026 | 45 |
| Sep 30, 2026 | 48 |
| Sep 29, 2026 | 43 |
| Sep 28, 2026 | 38 |
| Sep 27, 2026 | 35 |
| Sep 26, 2026 | 36 |
| Sep 25, 2026 | 23 |
| Sep 24, 2026 | 15 |
| Sep 23, 2026 | 12 |
| Sep 22, 2026 | 14 |
| Sep 21, 2026 | 19 |
| Sep 20, 2026 | 30 |
| Sep 19, 2026 | 25 |
| Sep 18, 2026 | 25 |
| Sep 17, 2026 | 29 |
| Sep 16, 2026 | 28 |
| Sep 15, 2026 | 33 |
| Sep 14, 2026 | 27 |
| Sep 13, 2026 | 16 |
| Sep 12, 2026 | 16 |
| Sep 11, 2026 | 25 |
| Sep 10, 2026 | 27 |
| Sep 9, 2026 | 37 |
| Sep 8, 2026 | 34 |
| Sep 7, 2026 | 39 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1243711735-root)<a href="https://payloaddirectory.dev/plugins/1243711735-root"><img src="https://payloaddirectory.dev/badge/1243711735-root.svg" alt="Payload Directory"></a>README
A Payload CMS plugin that adds a file explorer for Remote file storages (S3-compatible for now) to the Payload admin. It mounts an admin view and registers small Payload endpoints to list, preview, download, upload (presigned POST), create folders, and delete objects or prefixes.

/explorer) with list/grid views, previews, drag & drop uploads, bulk actions and folder navigation./api/s3-explorer for listing, presigned uploads, presigned downloads, folder creation and deletion./).pnpm add payload-storage-file-explorer
payload.config.ts):import { payloadStorageFileExplorer, s3ExplorerPluginOptions } from 'payload-storage-file-explorer'
export default buildConfig({
plugins: [
payloadStorageFileExplorer({
adapterOptions: s3ExplorerPluginOptions({
bucket: process.env.S3_BUCKET!,
credentials: {
accessKeyId: process.env.S3_ACCESS_KEY!,
secretAccessKey: process.env.S3_SECRET_KEY!,
},
endpoint: process.env.S3_ENDPOINT!,
region: process.enn.S3_REGION,
forcePathStyle: true,
storageType: 's3',
}),
// Optional: custom route & label
adminRoute: '/explorer',
navigationLabel: 'File Explorer',
// Optional overrides
maxUploadSize: 50 * 1024 * 1024, // 50 MB
// Optional: disable features
enableDelete: true,
enableDownload: true,
enableFolderCreate: true,
enableUpload: true,
// Optional: presigned URL expiry (seconds)
presignedUrlExpiry: 3600,
// Optional: scope to a subfolder
// rootPrefix: 'uploads/',
// Optional: limit files types to be uploaded, also by extension
allowedMimeTypes: [
'image/*',
'application/pdf',
'video/*'
],
allowedExtensions: [
'png',
'pdf',
'mp4'
],
// Optional: scope operation per users
access: {
canUpload: async ({ req }) => {
'use server'
return Boolean(req.user) && req?.user?.role === 'admin';
},
canDelete: async ({ req }) => {
'use server'
return Boolean(req.user) && req?.user?.email === 'super-admin';
}
},
}),
],
})
| Option | Description | Default |
|---|---|---|
adapterOptions | Required adapter configuration. Currently the plugin supports an S3-compatible adapter; see S3ExplorerPluginOptions. | Required |
adminRoute | Admin path where the view is mounted. | /explorer |
enableDelete | Allow deleting objects/prefixes. | true |
enableDownload | Enable presigned downloads. | true |
enableFolderCreate | Allow creating folders. | true |
enableUpload | Allow uploads. | true |
maxUploadSize | Max upload size in bytes. | 50 * 1024 * 1024 (50 MB) |
navigationLabel | Label for admin sidebar. | File Explorer |
presignedUrlExpiry | Presigned GET expiry in seconds. | 3600 |
rootPrefix | Optional root prefix to scope explorer to a subfolder. | '' |
access | Optional access callbacks to control per-operation permissions. Supported callbacks: canList, canDownload, canUpload, canDelete, canCreateFolder.Each callback receives an object with { req, key?, prefix?, item? } and may be async; return true to allow the operation for the current user/item.If omitted, global enable_X booleans control behavior. | - |
pageTitle | Optional naming to page title | S3 File explorer |
allowedMimeTypes | Allowed files to be upladed by their MIME type | * (Any) |
allowedExtensions | Allowed files to be uploaded by their extension | * (Any) |
All endpoints are registered on the plugin and available under /api/file-explorer.
/api/file-explorer/list?prefix=<prefix>&token=<continuationToken>
{ success: true, data: S3ListResult }/api/file-explorer/download?key=<objectKey>
{ success: true, data: { key, url } }/api/file-explorer/upload
{ prefix, filename, contentType }{ success: true, data: { url, fields, key } }/api/file-explorer/folder — create new folder placeholder
{ prefix, name } → { success: true, data: { folderKey } }/api/file-explorer/delete
{ key } deletes a single object OR { prefix } deletes all objects under that prefix (recursive)Examples (list & download):
curl 'http://localhost:3000/api/file-explorer/list?prefix=media/'
curl 'http://localhost:3000/api/file-explorer/download?key=media/example.jpg'
This plugin is built to support interchangeable storage adapters. At present it ships with an S3-compatible adapter. Future releases may add additional adapters (e.g., Vercel Blob, Google Cloud Storage, Azure Blob).
S3 (current)
Use the s3ExplorerPluginOptions() helper to build S3 adapter options. Supported S3 adapter options:
bucket (string) — required S3 bucket name.region (string) — AWS region.credentials — optional { accessKeyId, secretAccessKey, sessionToken? }.endpoint — optional custom endpoint (MinIO, LocalStack).forcePathStyle — boolean for path-style URLs (MinIO/local testing).The plugin will fall back to environment credentials / IAM role if credentials are omitted.
License & support
This repository is provided as-is. For questions about Payload integration, contact the Payload team or open an issue in this repository.
Topics
cloud storage
Store Payload uploads in third-party cloud storage through a generic adapter interface
1001.0M/wk46.1kv3 v4
payload nextcloud
Nextcloud storage adapter for Payload uploads over WebDAV with optional public share links
334/wk2v3
payload storage bunny
Storage adapter for with video streaming, signed URLs and CDN cache purging
753.9k/wk60v4
payload storage sanity
Store Payload media uploads in Sanity Content Lake with crops, focal points and video posters
721.2k/wk0v3
payload nav studio
Replaces the Payload admin sidebar with a drag and drop navigation that each user can customize
66108/wk15v3
payload storage cloudinary
Cloudinary storage adapter for Payload uploads with transformation presets, dynamic folders and private signed files
58176/wk7v3