> > I had a problem with the IE behaving very strange when trying to 
download MS
> > Office documents (docx, xlsx) from a subversion server; it downloaded 
them
> > as zip files instead. The fix was to add the subversion server to the
> > trusted sites in the IE settings: Tools->Internet Options, Tab 
Security
> > Its a wild guess but maybe this helps with your problem too.
> 
> Do you have svn:mime-type set appropriately (application/msword,
> application/msexcel) on those files? The "new" MS Office file formats
> *are* ZIP files (rename them & check it out). If you set svn:mime-type
> on those files, IE should handle them properly.

Here is one possible way to get Content-Type set if it isn't specified
with svn:mime-type:

<IfModule headers_module>
  # Fix docx/xlsx/pptx handling for IE7
  SetEnvIf Request_URI "\.docx$" docx_file
  Header set Content-Type 
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" 
env=docx_file
  SetEnvIf Request_URI "\.xlsx$" xlsx_file
  Header set Content-Type 
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" 
env=xlsx_file
  SetEnvIf Request_URI "\.pptx$" pptx_file
  Header set Content-Type 
"application/vnd.openxmlformats-officedocument.presentationml.presentation" 
env=pptx_file
</IfModule>

Setting the svn:mime-type is the correct way, but hacks like above might
work in a pinch.  Usual disclaimer applies.  If you use this and
it causes problems you owe me money... :^)

Kevin R.

Reply via email to