How can I allow users to download and automatically open files in default program
<p>I'm building a Django application and figured out how enable users to upload files (hosted by me)</p>

<p>Now I need to figure out how to let them click on a 'View file' button which opens the file in a default program. For example if it is a pdf, the file would open in Adobe Reader instead of in another tab. Or if it is a word doc it would open in Word (assuming that it was installed). </p>

<p>I know adding download links within the web app would be easy but is there a way to go a step further straight away open the file locally in an appropriate program.</p>