Skip to content

Conversation

@mlmcdan1
Copy link
Contributor

Summary
This PR fixes a bug where images uploaded from a local device do not appear in the CMS preview pane. The preview now properly renders images by checking if the value is a File object and using URL.createObjectURL() to display it.

Closes #7576

Images uploaded from a user’s device were not showing in the preview pane, causing confusion even though the upload succeeded. This change fixes that by detecting local file uploads and using URL.createObjectURL() to display them instantly in the preview.

Test plan

  • Cloned the repo locally on macOS
  • Ran the project using npm install then npm start
  • Opened an editable entry in the CMS demo
  • Uploaded an image from my device
  • Verified the image appeared in the preview without needing to save or refresh
decaporg.mov

Checklist

Please add a x inside each checkbox:

Here's a picture of a cute little spider 🕷️

@mlmcdan1 mlmcdan1 requested a review from a team as a code owner September 18, 2025 13:10
martinjagodic
martinjagodic previously approved these changes Sep 22, 2025
@martinjagodic martinjagodic enabled auto-merge (squash) September 22, 2025 07:47
@martinjagodic martinjagodic merged commit 304009f into decaporg:main Sep 22, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image Upload from Device Not Updating in Preview

2 participants