If you click view,you'll open that file in browser,
while download will pop up a dialog to save that file on your disk.
If you click view,you'll open that file in browser,
while download will pop up a dialog to save that file on your disk.
Download vs View is controled by content-disposition
header. Just add header below and you will get Save File dialog box.
content-disposition: attachment; filename=test.pdf