Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 949
Product
FileUp
Version
all versions
Title
Mac downloads*: Name of ASP script is given in the SaveAs dialog instead of the name of the downloaded file.
Problem

When using FileUp's TransferFile method to download files and prompt the client with a SaveAs dialog, windows clients and Mac Safari handle the download successfully, but Internet Explorer for Mac gives the name of the ASP script instead of the downloaded file in the SaveAs dialog.

This is because Internet Explorer for Mac is interpreting the response headers incorrectly. The download is successful, but the browser is giving the file the wrong name. This understandably, may make the end-user suspect that the download has failed, and they may not know that they can save and rename the file.

Solution
Possible Workarounds Include:
  • You may ask your mac users to browse your site with another browser, such as Safari. You may choose to inform your end users that Microsoft will no longer be developing Internet Explorer for Mac, so this issue is not likely to ever be corrected. They may prefer to migrate to a browser for which there is continuing support.

  • You may provide instructions on your website for Mac-IE users informing them that they will need to rename the file before saving it. The download is functioning correctly; it is merely being named incorrectly.

  • Depending on the type of file, you may prefer to provide an alternate download link for Mac-IE users. This might be:

    • A direct link to the file's URL, so that the browser makes a simple GET request. (Note: this requires that the file be placed in a virtual directory. You may presently be using FileUp to avoid storing content in a virtual directory, since the TransferFile method can retrieve the file from the file system directly.

    • You may choose to change the type of download to an "inline" download. This allows some file types, such as jpg files, to open directly in the browser. The user can then choose to save the file from the browser window.

      You will need to change your FileUp download code from:

      Response.AddHeader "Content-Disposition", "attachment;filename=""" &_
          strFileName & """"


      to:

      Response.AddHeader "Content-Disposition", "inline;filename=""" &_
           strFileName & """"

* Internet Explorer for Windows users experiencing this behavior should see the following article: http://support.softartisans.com/kbview.aspx?ID=117

Created : 10/11/2004 3:28:28 PM (last modified : 4/24/2012 4:34:48 PM)
Rate this article!
 
Comments