Stupid IE???

Today, a colleague asked me: “how to download file with docx extension (MS Word 2007) in IE6?” because IE automatic changes the .docx to .zip. I thought to solve this problem very easy by directly link download but I’m wrong :( It seems a IE bug??? So I recommend him that he should use PHP header to output binary content of file.

IE handle stupid or smart in this case?

2 thoughts on “Stupid IE???

  1. i ever this trouble when i want download 1 file by redirect to that file but with IE docx will change it to .Zip
    Solution you change htaccess in folder where have file to download :
    file .htaccess:
    AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx

    ok => IE will download right file docx

  2. Oh, he is the man I mentioned in this article 😀
    So basicly additional line below into .htacess to make sure IE can download right file:
    AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx

    But if server not allow to set from .htaccess???

Leave a Reply

Your email address will not be published. Required fields are marked *