This beta moves to the Payload 4 beta and its file versions. Install Payload
4.0.0-beta.1. It has breaking changes, so follow the upgrade guide.Breaking- Requires Payload
4.0.0-beta.0or later and Next.js>=16.4 <17. Canary builds are not supported.@payloadcms/ui,reactandreact-domare new peer dependencies. - Databases need Payload’s
sizes-to-variantsmigration. SQL databases then need one more migration for the new columns. - Every upload goes to its own folder. The stored
prefixof a client upload no longer includes the UUID, so access rules onprefixmust match the folder and its subfolders. tus-authcreates the TUS upload itself and returnsuploadUrlandheaders. Custom TUS clients sendPATCHrequests touploadUrl. TUS saves send no file.- The Bunny Stream encoding status is stored on the document.
- Collections on the same Stream library need the same
cleanupsetting. - Redeploy the Edge Script if you use client uploads over the HTTP API.
- A Stream video requested by file name is served only from the document that Payload checked. Before, another document with the same file name could be served.
tus-authrejects collections that the plugin does not manage.
- Replaced files and videos stay while a document or a version uses them. Restore and rename copy files to new keys.
- No CDN purge on upload, because every upload has a new URL.
- Videos from the bulk upload drawer and from form saves go to Bunny Stream over TUS when the collection allows it.
- The saved
filesizeof a TUS video is the size of the upload. A save before the upload is complete fails. - The TUS view renews short-lived upload headers and resumes after a page reload.
- The admin shows the encoding status of a video. An optional task syncs the status and fills it for videos uploaded before this release.
- Many fixes for TUS uploads with drafts, autosave, Cancel and file changes.
- The Stream webhook, the status check and status sync now update a video that only a draft uses.
- Thumbnails use the configured API route and send the Stream referer.
- Access-controlled files are kept out of shared caches.
- The storage hostname is checked by host, not by substring.
- CDN errors on proxied files, videos and thumbnails return
502. A404stays404. - TUS Retry continues the same upload. Start over forgets the old one and lets you edit the file name again. The admin asks before you leave a page during an upload.
- The IP lock warning no longer logs the client IP.
bunny:deploy-edge-scriptkeeps the secret of an existing script, prints it only when it creates one, and exits with1when the Pull Zone rules fail.initcreates.envreadable only by you, stops on Ctrl+C, uses the region of an existing storage zone and shows the cause of errors. CLI requests time out after 30 seconds.
The first beta for Payload 4. It has breaking changes, so follow the upgrade guide. v3 keeps getting critical and high-severity security fixes.Breaking
- Requires Payload 4 and Node.js 24.15 or later.
- Register
bunnyStoragein the top-levelstoragearray instead ofplugins. - Upload collections get a hidden
prefixcolumn. SQL databases need a migration. - Client uploads use Payload’s
POST /api/upload-instructionsendpoint. The plugin’s own upload endpoint is removed. - Client upload errors use Payload’s
{ "errors": [...] }format. - Client uploads are stored under a random UUID folder inside the prefix.
clientUploads.accesscan only narrow Payload’s own access check.- The
i18noption is removed. Override the labels in Payload’si18nconfig. - The
@seshuk/payload-storage-bunny/migrationssubpath is removed.
- The TUS upload sits inside Payload’s file panel.
bunny:deploy-edge-scriptis registered as a Payload CLI command.
This release contains security fixes for Stream TUS uploads. See the upgrade guide.Security
tus-authchecks the file type and size against the collection and the Stream config. The saved document gets the signed file size and MIME type.- Stream video tokens are bound to the signed-in user and expire after 24 hours.
- A Stream video can only belong to one document in a library.
Fixes
- Files are stored under the collection
prefixwhen a document is saved with an emptyprefix. Before, the file and its image sizes went to the root of the storage zone, and deletes used the same root path. See the upgrade guide if your collections have documents with an emptyprefix.
This release contains security fixes. Upgrade as soon as possible. See the upgrade guide, and redeploy the Edge Script if you use client uploads over the HTTP API.Security
- Client uploads are bound to the declared file size and MIME type, never overwrite an existing file, and are confirmed with a server-signed receipt.
- Stream
videoIdvalues are only accepted together with a server-issuedvideoToken.
@payloadcms/plugin-cloud-storageis now a peer dependency. Install it next to the plugin.- A dynamic
prefixis placed under the collection’s static prefix. - The
prefixfield andbunnyData.stream.resolutionsare read-only over the REST and GraphQL APIs.
Fixes
- Requires Payload 3.90.2 or later. Older Payload versions now fail at install with a peer dependency error instead of crashing at runtime.
Fixes
- Bulk uploads of large videos to Stream collections no longer hit the request body limit. Videos go to Bunny over TUS (#22).
- Client-direct Stream uploads work on Payload 3.90, which rejects incomplete MP4 and MOV files.
- Stream videos are deleted when their document is never saved.
- The
initwizard shows correct replication pricing and zone name rules.
Fixes
- The admin edit view no longer crashes on non-video uploads in Stream-enabled collections.
bunnyDatais now omitted from the response instead of being set tonull— thanks @PP-Tom!
See the upgrade guide for config changes and the data migration.Breaking
- Requires Payload 3.83.0+ and Node.js 22+.
- Stream metadata moved to a stored
bunnyDatafield, replacingbunnyVideoId/bunnyVideoMeta— needs a data migration. - Several config keys renamed or removed, and throw at startup until updated — see config changes.
- Per-collection storage zones and stream libraries.
- Browser-direct client uploads (presigned S3 or a Bunny Edge Script).
- S3-compatible zone access.
- IP-locked signed URLs and absolute expiry.
- Dynamic per-document storage prefix.
- Setup wizard and edge-script deploy CLI.
- Server-side config accessors.
- Adapter for the media-preview plugin.
- New documentation site, built with Mintlify — thank you for supporting open source!
The final v2.x release before v3.0.0.New features
stream.tus.checkAccessnow receives the parsed auth body (collection,filename,filetype,filesize) as a second argument, so you can gate uploads before the video is created.- Dynamic upload prefix: the storage prefix can be set per document via
data.prefixfrom a collection hook (for example, per-tenant folders).
- Fixed
applyUrlTransformthrowing on relative (access-controlled) URLs; existing query parameters are now preserved. - Request query parameters are preserved when proxying storage files through Payload (for example, Bunny Image Optimizer params under access control).
- Fixed post-upload “saved” detection that compared the update event by object identity instead of
updatedAt. - The plugin now fails fast with a clear error when a configured collection has no
uploadconfig.
Bug fixes
- Fixed user collection hooks (
beforeChange,afterRead,afterDelete, …) being lost when the plugin initialized. - Fixed collection-level
thumbnail: falsenot being honored.
- Added Tamil (
ta) translations. - Updated development dependencies to Payload 3.57.
New features
- Stream-only support: the plugin can run with only Bunny Stream, without a Bunny Storage config.
- Renamed
adminThumbnailtothumbnailfor clarity (old key still accepted with a deprecation warning, removed in v2.2.0).
- Fixed
thumbnailTime: 0being treated as invalid.
Improvements - Improved build configuration (
resolveFully: true) for better module resolution.New features
- Admin thumbnail
sizeNameparameter, to use a specific upload size. - Full internationalization across all 43 Payload-supported languages.
- Fixed URL decoding in signed-URL generation for correct path handling.
A major release with breaking changes — see the upgrade guide.Breaking
- Requires Payload 3.53.0 or higher.
- Removed the
optionswrapper — all config moves to the top level. stream.libraryIdis now a number;stream.mp4Fallbackis now a boolean.purge.enabledremoved — purging is enabled by the presence of an API key.- Removed
experimental.replaceSaveButtonComponent.
- TUS resumable uploads.
- Signed URLs with geo-restrictions and expiration.
- Advanced URL transforms (query params or a custom function).
- Automatic cleanup of failed upload sessions.
New features - Added
experimental.replaceSaveButtonComponent as a temporary workaround for a Payload issue
causing unnecessary file re-downloads during field updates.Bug fixes - Fixed uploads hanging in a loading state (pinned
ky to 1.7.5 to avoid a hang on Node below 22). -
Fixed the main filename being set to one of the image-size filenames instead of the original.New features
- Automatic CDN cache purging after uploads and deletions, with an async option.
- Fixed errors when cropping or replacing images.
- Fixed being unable to update metadata on an existing image.
New features
mp4Fallbackconfiguration (replaces the deprecatedmp4FallbackQuality), with resolution detection and caching.disablePayloadAccessControlfor more flexible file access.
- Fixed non-video files returning 404 when
disablePayloadAccessControlwas not set and Stream was enabled. - Fixed thumbnails loading directly from the CDN instead of proxying through Payload under access control.