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

Closed
opened 2026-02-16 12:51:26 -05:00 by yindo · 1 comment
Owner

Originally created by @deng-rui on GitHub (Mar 26, 2025).

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
Originally created by @deng-rui on GitHub (Mar 26, 2025). ### What happened? The image is a (TXT/Bat) file that we uploaded : ![Image](https://github.com/user-attachments/assets/cc34d545-a15b-478b-b5d9-02171dc8ae99) 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 ```
yindo added the bug label 2026-02-16 12:51:26 -05:00
yindo closed this issue 2026-02-16 12:51:26 -05:00
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/self-hosted#95