self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

bug: The download path generated by the uploaded file is incorrect

Open deng-rui opened this issue 9 months ago • 1 comments

What happened?

The image is a (TXT/Bat) file that we uploaded :
Image

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__Pa If the link is generated by sharing, it will look like this : https://*.*.com/autumn/attachments/UWlZ0SsauCqj2tcNsXqpBFoWmqUeFbrumSIrdL__Pa/Clean%20Image%20Cache.bat

The 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 :

git clone https://github.com/revoltchat/self-hosted revolt
cd revolt
chmod +x ./generate_config.sh
./generate_config.sh your.domain
docker compose up

deng-rui avatar Mar 26 '25 10:03 deng-rui

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

Docteh avatar Jun 05 '25 01:06 Docteh