Unable to send some SVGs

(#385) Bug Fixed media messaging

Summary

When I try to upload certain SVG files as an attachment in a message, it fails to send the message. Some SVG files can be successfully sent, but some are blocked from being sent. Seems like there is something on the server is trying to parse SVGs and failing to do so prevents the file from being sent. Not sure what is wrong with the SVGs I am sending as they are not corrupt and can be opened in vector design software.

Steps to reproduce

  1. Open a chat window
  2. Add an SVG file as an attachment to send.
  3. Send the message.
I have attached two SVG files here. The first one will successfully send, and the second one won't. image image

Environment (optional)

stable build 84 (356bd53), 2026-03-06 03:57:38 UTC, Electron 39.2.7, Windows 11 10.0.26200 (x64), desktop stable 0.0.8

Logs or screenshots (optional)

Logger.tsx:131 [18:54:08] [MessageQueue] [Error] Failed to send message to channel 1476077648922710175: HTTPResponseError: POST /channels/xxx/messages [500]
    at Object.<anonymous> (HttpClient.tsx:625:11)
    at Generator.next (<anonymous>)
    at u (8e040a12a14d7e02.js:104:46183)
    at s (8e040a12a14d7e02.js:104:46380)
log	@	Logger.tsx:131
error	@	Logger.tsx:109
(anonymous)	@	MessageQueue.tsx:287
R	@	8e040a12a14d7e02.js:1
s	@	8e040a12a14d7e02.js:1
Promise.then		
R	@	8e040a12a14d7e02.js:1
s	@	8e040a12a14d7e02.js:1
Promise.then		
R	@	8e040a12a14d7e02.js:1
s	@	8e040a12a14d7e02.js:1
Promise.then		
R	@	8e040a12a14d7e02.js:1
s	@	8e040a12a14d7e02.js:1
(anonymous)	@	8e040a12a14d7e02.js:1
(anonymous)	@	8e040a12a14d7e02.js:1
handleSend	@	MessageQueue.tsx:295
drain	@	MessageQueue.tsx:198
maybeProcessNext	@	Queue.tsx:135
enqueue	@	Queue.tsx:59
(anonymous)	@	MessageActionCreators.tsx:313
ek	@	MessageActionCreators.tsx:310
(anonymous)	@	useMessageSubmission.tsx:118
(anonymous)	@	ChannelTextarea.tsx:279
m	@	useTextareaSubmit.tsx:356
ks	@	8e040a12a14d7e02.js:80
r	@	8e040a12a14d7e02.js:80
(anonymous)	@	8e040a12a14d7e02.js:80
(anonymous)	@	8e040a12a14d7e02.js:80
(anonymous)	@	8e040a12a14d7e02.js:80
(anonymous)	@	ChannelTextarea.tsx:731
onKeyDown	@	TextareaInputField.tsx:116
559678527-7694bf77-b1d2-4e15-8752-2b5c0e0afc2a.mp4

Comments

Sign in with Fluxer to comment and vote.

No comments yet.