Jump to content

Recommended Posts

Posted

I've been looking for a simple workaround by keeping the file as .docx but havent found one.

 

The problem:

Teacher adds a Word 2007 .docx file for his Word 2007 class and when students try to download it, it saves as a zip file.

 

Is there a workaround for this? (without using firefox)

Posted
Email, as a guess. What email system are you using? We are finding this with Squirrelmail, but if the download link is used it tends to work. Not sure with Outlook etc though.
Posted (edited)

It seems as if IIS / Apache does not understand this format, is scanning the document, and due to the file format change, interpreting the document as a zip file.

 

1. Get to the Internet Management snap-in any way you like

2. Right click “Web Sites” and select “Properties” to modify the global behavior, or any specific website to edit just that one

3. Select “HTTP Headers”

4. Select “Mime Types”

5. Enter a new extension (no leading period is required) and the appropriate mime type. Repeat as needed for each extension.

6. Click “OK” to close all the dialogs

 

 

Extension MIME Type

.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template

.potx application/vnd.openxmlformats-officedocument.presentationml.template

.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow

.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation

.sldx application/vnd.openxmlformats-officedocument.presentationml.slide

.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document

.dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template

.xlam application/vnd.ms-excel.addin.macroEnabled.12

.xlsb application/vnd.ms-excel.sheet.binary.macroEnabled.12

 

For Apache place in .htaccess

AddType application/vnd.ms-word.document.macroEnabled.12 .docm

AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx

AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx

AddType application/vnd.ms-powerpoint.template.macroEnabled.12 potm

AddType application/vnd.openxmlformats-officedocument.presentationml.template potx

AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam

AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm

AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx

AddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm

AddType application/vnd.openxmlformats-officedocument.presentationml.presentation pptx

AddType application/vnd.ms-excel.addin.macroEnabled.12 xlam

AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb

AddType application/vnd.ms-excel.sheet.macroEnabled.12 xlsm

AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx

AddType application/vnd.ms-excel.template.macroEnabled.12 xltm

AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx

Edited by somabc
Posted

We had the same problem when attatching docx files and emailing them through the county email system ... the problem was that the exchange server didnt recognise docx files went down the list and ended up with the last one IE zip ... so sent them as zip files ... try opening them as a zip and you get rubbish

 

The answer was to simply rename the recieved file with a docx extension and the file was back in shape ...

 

so for example ... test.zip rename test.docx

 

Hope this helps

 

Cheers for now

Brian

 

Silicon Keyboards with lower case letters

Posted
The easiest/simplest solution around this is to download Ork Tools for Office 2007. You can then specify the default Save As format and specify .doc.
Posted

Looks like the 'real world' solution right now is to just change the extension of the file.

 

I would suggest to the teacher/students to save all files as .doc, however I fear they may lose some kind of formatting in doing so.

 

Thanks again!

  • 1 year later...
Posted
It seems as if IIS / Apache does not understand this format, is scanning the document, and due to the file format change, interpreting the document as a zip file.

 

1. Get to the Internet Management snap-in any way you like

2. Right click “Web Sites” and select “Properties” to modify the global behavior, or any specific website to edit just that one

3. Select “HTTP Headers”

4. Select “Mime Types”

5. Enter a new extension (no leading period is required) and the appropriate mime type. Repeat as needed for each extension.

6. Click “OK” to close all the dialogs

 

 

Extension MIME Type

.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template

.potx application/vnd.openxmlformats-officedocument.presentationml.template

.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow

.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation

.sldx application/vnd.openxmlformats-officedocument.presentationml.slide

.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document

.dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template

.xlam application/vnd.ms-excel.addin.macroEnabled.12

.xlsb application/vnd.ms-excel.sheet.binary.macroEnabled.12

 

Thanks for this!

 

Its been bugging me for a while

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...