[Bug]: SVG image attachments are rejected by T3 Code
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 23k
- Forks
- 5.9k
- Avg merge
- 11h 14m
- Merged PRs (30d)
- 357
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Open T3 Code.
- Start or open a conversation.
- Drag an SVG to the composer.
Expected behavior
It should attach the SVG as an attachment.
Actual behavior
The composer refuses the SVG with an error message
SVGNAME is not a supported image type. Attach GIF, HEIC, HEIF, JPEG, PNG, or WebP images.
This prevents me to add SVG for designs.
Impact
Major degradation or frequent failure
Version or commit
0.0.41-nightly.20260908.1400
Environment
Windows 11
Logs or stack traces
Screenshots, recordings, or supporting files
No response
Workaround
A workaround is to rename the extension to txt or html or something.
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 in apps/web and trace the conversation composer’s image-attachment validation, using the reproduction steps to find where supported image types are defined. Update the behavior so SVG files can be attached without rejecting the existing image types, then run the relevant web tests or manually verify by dragging an SVG into a conversation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100