I’m sorry if I’m bringing up this old topic, but I also have the same issue. It seems to have appeared suddenly after the update of Ubuntu and/or Rocket.Chat (I am now with the latest v6.3.2). I also have a self-hosted deployment on Docker.
Have you by any chance resolved it?
From what I’ve noticed, the difference between clicking on the attachment and the download link seems to be the presence of the parameter “?download” in the generated URL.
In its absence, the downloads return a 403 forbidden error.
Hello,
I have the same problem when I try to open files from the desktop app (on windows). If I’m connect also in web interface (firefox for example) I can open files from desktop app. It’s possible to configure only the download of file, and desactivate open of file ?
Thank in advance
I couldn’t believe I had to create an account in this forum to clarify the issue and why no one from rocket.chat is explaining this issue because this is a “feature”. As marlynxlinux already wrote, you need to unset the setting to get access to the files,
but you don’t need to.
As following the steps to reproduce:
Open a chat with an attachmant on your Rocket.Chat APP!! not in the browser
click on a link to download an uploaded file
→ you get the 403 error
This means you are not logged in in the browser to your rocket chat instance. If you log in to your rocket chat instance in your browser, then you are authenticated, and you can download the files.
If you unset the setting as marlynxlinux wrote, you can always download files because these links are downloadable from everyone with no auth.