Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force link to Excel document to download a new version of the document

Status
Not open for further replies.

ToeKnee2

Programmer
Jun 8, 2006
21
GB
Hi, forgive me if this is a repeated question, I cannot seem to find anything like this.

I have a link to an excel document on my website. The link works fine, and I can configure my local machine it to open in the Excel application each time and not the browser(haven't found a way to force this from server side).

My problem is this:

If I download and open the file it works fine.

If I then overwrite the Excel file on the server and click the download link again, I get the original document again. E.g the excel document is not the latest version.

I have tried deleting all Temp Internet files, clearing the cache and history but it will still d/load the old version of the excel file.

Is there any way to force the user to download the latest file everytime they click on the link?

It is not appropiate to change the configuration on every users' machine. I need some way of coding the link to force the latest version upon the users.

The code I am currently using is

Code:
<a href="\intranet\files\Book1.xls" target="_blank"> Download </a>

Thanks, Tony
 
Thanks for you help guys. I am currently testing the VB script but I'm definately more interested in configuring the server to deliver the file with a generic binary MIME type.

I will look into this further.

Thanks again for your help.

 
I've found this....

To force a file to be downloaded, via the Save As browser feature, you can simply set a MIME type to application/octet-stream and that immediately prompts you for the download.

This appears to work fine, but local file type settings will still override this.

I think this is working correctly now so no more problems. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top