View Button from attachment files not using correct url #1007
Replies: 2 comments 3 replies
|
It works from my side though, on real s3, pretty sure it's misconfiguration. |
|
The "View" button works by asking the server for a presigned URL for the attachment, then opening that URL in the browser. The URL is generated on the server using the S3 client config, so the problem is almost certainly what the server thinks the S3/Minio endpoint is (i.e. your env and how it’s passed into the container). Why you see "This site can't be reached"The server builds the presigned URL from the same S3 client it uses for uploads. That client is configured from env (see So:
So the fix is: What to set1.
|
Uh oh!
There was an error while loading. Please reload this page.
I have a local setup of bigcapital, I am now able to upload attachments to the modules lng bills etc. But when checking the attached file there is the view and delete button beside it and when clicking the view button it redirects to an incorrect url so I'm getting "This site can’t be reached".
I am using a minio container for the storage of file attachments.
I think my configuration could be the cause like the env varialbes in my .env or the env called in the docker-compose.prod.yml file. How do I configure this. I opened an issue for this which has a detailed data of my configurations #1001
All reactions