mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-07-21 12:35:23 -04:00
bug: The download path generated by the uploaded file is incorrect #95
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @deng-rui on GitHub (Mar 26, 2025).
What happened?
The image is a (TXT/Bat) file that we uploaded :

It cannot be read to display text content
If you use the link generated by the download as follows :
https://*.*.com/autumn/attachments/download/UWlZ0SsauCqj2tcNsXqpBFoWmqUeFbrumSIrdL__PaIf the link is generated by sharing, it will look like this :
https://*.*.com/autumn/attachments/UWlZ0SsauCqj2tcNsXqpBFoWmqUeFbrumSIrdL__Pa/Clean%20Image%20Cache.batThe former cannot be downloaded, the latter can be accessed normally. Missing filenames, resulting in files not being downloaded/accessed.
I think it might be a routing issue ? Many thanks to the team for their work !
All are built using the default configuration :
@Docteh commented on GitHub (Jun 4, 2025):
Hi, this should be fixed with a newer version of the web interface, and a change to the Caddyfile suggested in https://github.com/revoltchat/self-hosted/pull/150