When the default in your wiki is still embedding the images:
Than this syntax shows a embedded image:
{{wiki:dokuwiki-128.png}}
and this shows the link to the image:
{{wiki:dokuwiki-128.png?linkonly}}
(but that link can, in that case, indeed not be forced to download the image by the browser.)
https://www.dokuwiki.org/images