Skip to main content
June 1, 2006
Question

File Extension for Download

  • June 1, 2006
  • 3 replies
  • 318 views
Hi,

I have an EXE file on my webserver which I would like people to be able to download. I have some error checking and basically, if they are eligable to download the software, there is an IF statement that basically has a CFLOCATION to navigate to the EXE file. The user is then presented with a download dialog and they can save the file, etc.

However, many users have reported problems with the file extension being lost during the download, as when they have finished downloading the file, Windows does not recognise the file type and when double-clicked, asks what program to open the file in, when it should be a self installer, etc.

If the user renames the file and puts in .exe in at the end of the file name, Windows then recognises the file and the file works as normal???

I have linked to the file using the full filename (including the .exe extension), so I am not sure why the file loses this when it is downloaded?

Is there a better way for me to kick off the download, so to maintain the file extension, as it is doing my head in with everyone phoning up with the same problem! lol

Thanks in advance for your help.

Mark
    This topic has been closed for replies.

    3 replies

    BKBK
    Community Expert
    Community Expert
    June 4, 2006
    downloadPage.cfm
    ================

    <cfheader name="Content-Disposition" value="attachment; filename=theFile.exe">
    <cfcontent type="application/unknown" file="c:\client downloads\theFile.exe" deletefile="no">

    June 4, 2006
    Use a client side redirect to the file instead of cflocation.
    Inspiring
    June 1, 2006
    Does the end user have anit-spyware or anitvirus software that could be causing it to corrupt or delete the file?