HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Bug, downloading a uploaded .docx document is saved as a zip file.

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#75172 (In Topic #15591)
Avatar

Fan in training

When downloading an uploaded docx document the file is a zip archive

Very wierd but only found this when someone tested uploading a docx word doc in the downloads section.

No problem or errors when uploading the .docx.

When downloading the document, it saves as a zip archive with xml and html files in the archive.

Other filetypes uploaded were downloading fine so far.
Back to the top
 
Posted
Rating:
#75175
Avatar

docx files are zip files. Someone else reported this, but I don't think it is anything we've done. More likely some Microsoft technology somewhere is trying to sniff out mime types when a binary type is set. Does it happen on all browsers? IIS server?


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Support me on Patreon
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#75177
Avatar

Fan in training

Running LAMP and using IE.

I've tried downloading on FF and it seems fine, so I think the culprit is IE.
The thing is nearly everyone uses IE here so we need to find a system that can deal with this download issue.

So is this a bug or can a workaround be found?
Back to the top
 
Posted
Rating:
#75179
Avatar

I just found this:
PROBLEM: email attachments with the Office 2007 or 2010 file extensions (i.e., .docx, .xlsx, .pptx) are downloaded by IE8 as .zip files.

SOLUTION: Until Microsoft recognizes this as a serious problem and releases a fix in their next IE8 update, do the following:
1. In the upper-right corner of IE8, click on Tools to open the drop down menu;
2. At the bottom of the Tools menu, click Internet Options;
3. In the Internet Options dialog box, select the Security tab;
4. On the Security tab, select the Internet zone, then click the Custom Level button;
5. Scroll about 2/3 down the list to the option "Open file based on content, not file extension" and change the setting to Disable;
6. Click OK;
7. Repeat steps 4-6 for the Local Intranet zone and Trusted Sites zone;
8. Click OK;
9. Close all instances of IE8;
10. Reopen IE8 and it should now recognize Office 2007 and 2010 file extensions when saving email attachments.

Also there's an option "immediate_downloads" you can set, that tells ocPortal to set mime types for downloads. I think it will have one for docx. It's not turned on by default because the download system should (IMO) save to disk, and therefore specifies the binary mime type.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Support me on Patreon
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#75184
Avatar

Fan in training

Thanks for making everyone aware of this.

And you have just made a lot of people happy :).
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: