I have an Excel document on my intranet. I want to forbid people from opening the original version of this file. Is there a way I can make a “left click” a save as”? Any better ideas?
@svidgenDec 16.2009 — #If you provide a link to a file, people will be able to download a copy of the file--that's why the link is there to begin with ... am I missing something? What exactly are you trying to prevent?
@nscherneckauthorDec 17.2009 — #Yes, the file will be on a shared drive and I want to prevent people from editing the original version of it which is why I want to force them to save a copy when they click the link.
@svidgenDec 17.2009 — #You'll need to make the file available via HTTP then. How you go about doing that may depend on the particular web server you're using. A simple way would be copy and link to the document to a folder in the webroot.
@aj_nscDec 17.2009 — #Use PHP. It will send the appropriate headers (content-type: application/force-download; content-disposition: attachment; filename='filename.xls') that will only allow this file to be downloaded and saved to the users computer, not opened by the program that it is associated with.
Google "PHP download class" and it should help you out.
EDIT: I may have misunderstood your problem....but my solution should still help you out!