Skip to content

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

Open
@deng-rui

Description

@deng-rui

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🆕 Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions