SIGN IN SIGN UP
payloadcms / payload UNCLAIMED

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.

0 0 277 TypeScript

fix(plugin-cloud-storage): should persist external data returned by handleUpload (#15188)

### What
Fixes issue where storage metadata (object keys, timestamps, custom IDs,
etc.) from external providers (s3, azure, etc) is no longer persisted
back to the main doc. This issue was introduced in PR #14988 when the
external upload process was moved from the `beforeChange` to
`afterChange` hook.

### Why
Without automatically persisting metadata from external storage, users
have to manually update the doc themselves. This restores backward
compatibility for existing custom storage adapters.

### Where
Added automatic data capture/persistence in
`packages/plugin-cloud-storage/src/hooks/afterChange`

#### Testing
Added to test suite `test/plugin-cloud-storage`
J
Jessica Rynkar committed
7d80d21abda447c5833302db674a17b36a8ea64d
Parent: a8bfade
Committed by GitHub <noreply@github.com> on 1/13/2026, 5:36:07 PM