I have pdf media files stored in a data table. I then use Links in a repeating table to show the user a preview of the pdf.
I know that by default the media files are downloaded instead of show in a (new) browser window. But there is a -still- undocumented method media.get_url(False) to get a link that should yield a non downloading url. See this discussion:
[SOLVED] PDF Media Files not previewing in browser
In effect, it seems to append “&nodl=1” to the url.
And indeed I have used this technique in the past, but it does not seem to work anymore. Even if I manually paste the non-downloading url in a browser window, the file still downloads. I tested this in Safari and Chrome.
Any idea what is going on?