Sharing a file "raw"

Nextcloud version (eg, 29.0.5): 29.0.7
Operating system and version (eg, Ubuntu 24.04): Rocky Linux 9
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.37
PHP version (eg, 8.3): 8.2.24

I need to share a basic text file that is then read by an external automation.
If I do this via NC, it won’t work because when you share a file, even if it’s just a basic text file, it will present that in the NC-styled webpage with the banner, logo, etc.

Is it possible to just share a raw file without the “presentation”? Just as if I was exposing a .txt file to a normal web server?

If this could be done within NC, that would be great as it would allow easy editing within NC. But if I have to just host it as a raw file in Apache outside of NC, that’s OK, but not preferred.

Thanks.

Maybe you can add /download to the share. That always works also if download is not allowed.

old:
https://cloud.server.tld/s/abcdefghijklmno
new:
https://cloud.server.tld/s/abcdefghijklmno/download

For better names you can use the app Configurable Share Links. This also has the advantage that URLs can be reused even if the share is replaced.

Thank you for this, I was unaware of the /download option. I will give it a go.

It may be that it is an undocumented feature. Because you can also use it to download files where the “Download” is not displayed.

Security through obscurity - Wikipedia