Binary Image Field does not show the Correct Image Preview
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Problem Statement
My content type has different types of binary/file/image fields that could have a preview when an image is loaded
In this case, when I load a binary and an image, publish contents, then reload the dialog. The binary field shows the incorrect preview. It shows the preview of the image, not the one that has really been loaded in it.
The binary field contents can be verified using the file info icon.
Steps to Reproduce
I have a content type that looks like this:
It has a binary field, and it also has a file field and an image field
When I get to upload a binary and an image (using different files) then reload the dialog I get the wrong preview
I'm including a Bundle that can be used to recreate the content type and a piece of content where the issue is visible
tori-magnus-01K36EAZCJPVFEGANM775SE7ZK.tar.gz
Acceptance Criteria
All fields should show their respective preview accurately
dotCMS Version
main
Proposed Objective
Customer Success
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by importing the attached Bundle and reproducing the content type with binary, file, and image fields. Reload the dialog after uploading different binary and image files, then compare each preview with the file info shown for the binary field. Done means every field displays the preview for its own uploaded content.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100