For everyone complaining that they don't want to be forced to download--just have two buttons:
March Invoice: View - Download
This is much clearer for the average user than a single link with hidden right click functionality. Currently clicking on a link you have no idea what you're going to get.
Problem is that if the browser doesn't support viewing of the file, then both links will cause a download, which can be confusing to the user. I think we need a way to see if a MIME type of a file is supported by the browser (including its plugins.)
Why are both unacceptable? Server enforcing downloading/viewing measn the user couldn't override its choice, but providing both links avoids that issue.
If the browser presented both choices, it wouldn't be able to distinguish by situation, so either it would hide downloading inappropriately, or it would present it inappropriately.
If the server was in charge, then most websites would screw it up through incompetence or malice.
Two links for every link, or have the server (an entity who doesn't necessarily have the users interest in mind) having more control over what the user can do with the content it sends.
Both options suck.
To be fair? I got responses in favor of both options.
March Invoice: View - Download
This is much clearer for the average user than a single link with hidden right click functionality. Currently clicking on a link you have no idea what you're going to get.