Skip to content

Add explicit false fallback to image mime check#2913

Open
Alex2251 wants to merge 1 commit intoChainlit:mainfrom
Alex2251:fix-cl.File-content
Open

Add explicit false fallback to image mime check#2913
Alex2251 wants to merge 1 commit intoChainlit:mainfrom
Alex2251:fix-cl.File-content

Conversation

@Alex2251
Copy link
Copy Markdown
Contributor

@Alex2251 Alex2251 commented Apr 28, 2026

Solves #2897
Add explicit false fallback to image mime check


Summary by cubic

Add an explicit false fallback to the image MIME check in Attachment.tsx so isImage is always boolean and we avoid triggering image preview logic on invalid input.

Written for commit 4f7491f. Summary will update on new commits. Review in cubic

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. frontend Pertains to the frontend. labels Apr 28, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Pertains to the frontend. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant