Open wrjlewis opened 1 month ago
According to the specs we use the body as the filename only if the filename field is not specified. While I understand that files with a very long name might incur in this issue, and we will look into fixing it (we may just use a SHA of the body/filename when it's too long), at the same time I also feel that the filename field is made to allow the client to keep consistency of the filename between the process of upload and download. In the meantime my suggestion would be to send media always with a filename.
Steps to reproduce
Where are you starting? What can you see? An image in a room with a long
body
What do you click? Click the image and expect the fullscreen popup but nothing appears
The error message in EX:
Looks like EX is using the body as the filename, and at a specific length (255 chars) iOS and MacOS will error.
A fix could be to cut off the filename before the OS limit, or use a different identifier for the filename.
The body in the example:
Outcome
What did you expect?
Click the image and expect the fullscreen popup
What happened instead?
Nothing
Your phone model
iPhone 16
Operating system version
iOS 18.0.1
Application version
729
Homeserver
Synapse 117rc1
Will you send logs?
No