I'm using Owncloud (behind Nginx) to share a file. When I generate a share link, the link points me to the download page or if I append "&download", it immediately starts downloading the file.
My need is, as Github's "Raw file" option, serve a text file in the browser so I may use that file as an input to an another service (like draw.io)
This should be an owncloud property as this person asks for, but I thought I may work around of this problem with Nginx.
May I change some headers or something in order to make a browser show the file's contents instead of downloading by appending /my-raw-command to the url?
For example, if the original download url is this: www.example.com/myfile.txt&download, I want it to be shown in the browser if I type www.example.com/myfile.txt&download/my-raw-command
Would somebody give me any tips to start from?