Skip to content

fix(ui): ensure up-to-date upload preview thumbnails in admin panel#15029

Merged
DanRibbens merged 4 commits intopayloadcms:mainfrom
jefferyto:fix-ui-upload-thumbnail-imageCacheTag
Jan 13, 2026
Merged

fix(ui): ensure up-to-date upload preview thumbnails in admin panel#15029
DanRibbens merged 4 commits intopayloadcms:mainfrom
jefferyto:fix-ui-upload-thumbnail-imageCacheTag

Conversation

@jefferyto
Copy link
Copy Markdown
Contributor

@jefferyto jefferyto commented Dec 24, 2025

What?

Ensure the preview thumbnails in list view table cells and edit view upload fields are up-to-date with the actual uploaded/edited images.

Why?

A thumbnail for an uploaded image may be shown in several places:

  • List view of the upload collection
  • List view and edit view of other collections that have an upload field linking to the upload collection

After editing an image, the thumbnail of the unedited version may still be shown in these places due to browser caching.

How?

This sets the imageCacheTag property for the Thumbnail component to force the component to load the latest thumbnail image.

Fixes #15027

@jefferyto jefferyto force-pushed the fix-ui-upload-thumbnail-imageCacheTag branch 3 times, most recently from a79a908 to 1b09955 Compare December 24, 2025 13:14
@jefferyto jefferyto force-pushed the fix-ui-upload-thumbnail-imageCacheTag branch from 1b09955 to ccebb24 Compare December 24, 2025 13:41
…il-imageCacheTag

# Conflicts:
#	test/uploads/e2e.spec.ts
DanRibbens
DanRibbens previously approved these changes Jan 13, 2026
Copy link
Copy Markdown
Contributor

@DanRibbens DanRibbens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DanRibbens DanRibbens enabled auto-merge (squash) January 13, 2026 04:51
@DanRibbens DanRibbens disabled auto-merge January 13, 2026 20:06
@DanRibbens DanRibbens merged commit 6f4b272 into payloadcms:main Jan 13, 2026
97 of 99 checks passed
@jefferyto jefferyto deleted the fix-ui-upload-thumbnail-imageCacheTag branch January 14, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upload field shows cached thumbnail after image edit

3 participants