Hi Experts
I have a problem with the .DOCX Mime Content type we use. I have correctly set the MIME type on my IIS server (V6) as
".docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document
When I retrieve a test document form the site using a direct link, eg
http://mydnnsite.com/portals/0/test.docx
the HTTP header is:
HTTP/1.1·200·OK(CR)(LF)
Content-Length:·9977(CR)(LF)
Content-Type:·application/vnd.openxmlformats-officedocument.wordprocessingml.document(CR)(LF)
Last-Modified:·Fri,·12·Mar·2010·02:37:35·GMT(CR)(LF)
Accept-Ranges:·bytes(CR)(LF)
ETag:·"a5715ef98cc1ca1:ed2"(CR)(LF)
Server:·Microsoft-IIS/6.0(CR)(LF)
X-Powered-By:·ASP.NET(CR)(LF)
Date:·Fri,·12·Mar·2010·02:51:30·GMT(CR)(LF)
Connection:·close(CR)(LF)
When I then use the link module and reference this as a File Link the URL
http://mydnnsite.com/LinkClick.aspx?fileticket=gln6elZuXys%3d&tabid=97&mid=2045
shows the HTTP header as
HTTP/1.1·200·OK(CR)(LF)
Connection:·close(CR)(LF)
Date:·Fri,·12·Mar·2010·03:22:56·GMT(CR)(LF)
Server:·Microsoft-IIS/6.0(CR)(LF)
X-Powered-By:·ASP.NET(CR)(LF)
X-AspNet-Version:·2.0.50727(CR)(LF)
content-disposition:·inline;·filename="Test.docx"(CR)(LF)
Content-Length:·9977(CR)(LF)
Cache-Control:·private(CR)(LF)
Content-Type:·application/octet-stream(CR)(LF)
(CR)(LF)
Note the different Content-Types.
The problem truly manifests in IE7: In the first case IE opens the file in word, but in the second case it regards it as a .ZIP file (which it is) and wants to save it as a .zip file, rather than opening in Word. Firefox 3.6 does not show this behaviour.
My client is not happy and wants this resolved. I am thinking that DNN mangles the content type that IIS would normally show when it writes the headers.
I am crossposting this to the Links and Filemanager module forums. Any feed back much appreciated!
Regards
Felix Burkhard