plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: Download attachment

Open dskovac opened this issue 2 years ago โ€ข 11 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

Hi, I'm using the latest, newly installed, self-hosted version of Plane. When I upload an attachment to a current issue (regardless of the file type and size, it appears correctly within the frontend view. But any attempt to preview or download an attachment fails. Clicking on the attachment results in opening a new page with the URL: http://localhost/uploads/201dac31-c891-47ca-8d53-f58b82ff0dcf/ae5de029f8b54b6bb147261c542e74ba-download.png, while browser option "save target as" results in "download failed - check internet connection".

Steps to reproduce

Open a new issue Add an attachment Try to open or download an attachment

Browser

Google Chrome

Version

Self-hosted

dskovac avatar Dec 20 '23 14:12 dskovac

You need to specify either your ip or domain in the environment variable instead of http://localhost/ image

Dev-A-Line avatar Dec 21 '23 08:12 Dev-A-Line

Hi @Dev-A-Line this has been configured as described before I submitted the ticket :) I have checked it again, WEB URL variable is set to IP address:port of my server, but the error is present never the less :(

dskovac avatar Dec 21 '23 08:12 dskovac

@dskovac To be honest with me with ip also did not work only when the domain connected began to work normally image image

Dev-A-Line avatar Dec 21 '23 08:12 Dev-A-Line

My env file is exactly the same as yours, it's just that I'm using IP address instead of FQDN and HTTP instead of https, but this shouldn't be an issue (since this machine can't be accessed outside of internal network). Really not sure why this is happening??

dskovac avatar Dec 21 '23 09:12 dskovac

I'm not arguing that it's a problem with just told you how I managed to solve it. Let's wait for the developers to add a solution in the next release.

Dev-A-Line avatar Dec 21 '23 09:12 Dev-A-Line

@Dev-A-Line No No, you got me all wrong, my reply wasn't meant to be rude or anything, just tried to explain things :) Thank you for trying to help, I really appreciate it. Hope someone from the development team will joint the conversation as well ๐Ÿคท

dskovac avatar Dec 21 '23 10:12 dskovac

Sorry, folks, that you're facing this issue. We will address it shortly, aim to provide a better experience, and supply the necessary documentation. cc: @pablohashescobar

vihar avatar Dec 27 '23 18:12 vihar

Hi @pablohashescobar, @vihar do you have any news on this issue? Thanks in advance :)

dskovac avatar Jan 22 '24 14:01 dskovac

@sriramveeraghanta @pablohashescobar @vihar hi, I'm experiencing the same issue, is there any chance we could get an update, please?

thanks!

eughcus avatar May 07 '24 16:05 eughcus

@eughcus, can you check by changing the environment WEB_URL to the hosted domain?

pablohashescobar avatar May 07 '24 17:05 pablohashescobar

@pablohashescobar this is a workaround, not a solution ๐Ÿคท๐Ÿฝโ€โ™‚๏ธ If one is using self hosted version that is not available to the outside world, but only for internal network, a domain is not needed, IP address would suffice. Also, self hosted domain would create additional DNS/routing configurations to be maintained ๐Ÿคท๐Ÿฝโ€โ™‚๏ธ.

just saying, hoping there will be a solution ๐Ÿ˜Š

dskovac avatar May 07 '24 17:05 dskovac

@dskovac, if you are on a private network with an IP. You can provide that IP to the WEB_URL.

pablohashescobar avatar May 20 '24 05:05 pablohashescobar