Forum Moderators: open

Message Too Old, No Replies

Form link not saving extension

         

Jeremy_H

11:56 pm on Oct 26, 2005 (gmt 0)

10+ Year Member



I'm trying to set a link on my website that will download an .exe file.

I noticed if I do this:

<a href="file.exe">Download</a>

It trys to save the file WITH an extension.

If I do this:

<form action="file.exe" method="link"><input type="submit" value="Download"></form>

It trys to save the file WITHOUT an extension.

I want to use a link button, but it's not saving with an extension. Any ideas?

JAB Creations

1:31 pm on Oct 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you have extensions disabled in windows?

Maybe you should use Firefox instead of internet exploiter. ;)

In windows though go to any folder (windows key + E will bring up windows explorer) and click the TOOLS menu and then FOLDER OPTIONS. Next click on the VIEW tab and then uncheck the box for HIDE EXTENSIONS FOR KNOWN FILE TYPES.

Hopefully this will resolve your issue.

kaled

3:30 pm on Oct 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could use a button with onclick="location.href='file.exe'". However, you should provide an alternative if javascript is disabled.

Alternatively, use action="downloadit.html" and use a meta redirect to file.exe from the action page.

Kaled.