I have a multi-DB environment, and I have tried various methods to retrieve a functional public URL of an attachment (image but can be a pdf as well), with or without a token. In all versions, as soon as I am logged in, the file is available, but otherwise I get a 404 error.
Now I am trying the simplest way, setting the attachment as public.
att.public is set to True, att.type is set to binary.
att.local_url is /web/image/48414?unique=ecf93128ec52bba345611f66e8bafa806be267bf
I tried to add db=<dbname> and no improvements (I know it's case sensitive, I set it properly)
I am running Odoo 18 Enterprise on Windows (on-premise), behind a Caddy proxy server.
As soon as I am logged in, the file is available, but otherwise, I get a 404 error.
Can anyone help, please?
Thank you,
Liviu