Forums | Mahara Community

Support /
Zip Files


anonymous profile picture
Account deleted
Posts: 7

04 April 2014, 7:14

Hello,

I am trying to upload zip file folders to ePortfolio in Internet Explorer, but after decompressing the files, the document opens as a zip file, and not a Word document.  I am successful in Google Chrome, but not Internet Explorer.

Is there a solution to this?

Megan Burke

914-773-3664

Aaron Wells's profile picture
Posts: 896

04 April 2014, 12:37

Hi Megan,

We've had some bugs with Mahara's ability to recognize the filetype of uploaded files. In the releases before 1.6.9, 1.7.5, and 1.8.2, we relied on the mimetype passed in by your web browser. This is probably why you're noticing different behavior in IE and Chrome. Not all web browers identify all file types correctyl.

In the minor release we pushed out yesterday (1.6.9, 1.7.5, and 1.8.2) it tries to identify the filetype based on the PHP fileinfo library. If that doesn't work, it checks a list of known file extensions to try to identify the file. And only if that doesn't work, it uses the mimetype supplied by the browser.

Unfortunately, fileinfo identifies Word documents as zip files. Embarassed So this doesn't work out of the bat. But, you can add a config option to turn off fileinfo, in which case the list of known file extensions will be the first thing tried.

So, to use that workaround, you need to do this:

1. Upgrade your site to 1.6.9, 1.7.5, or 1.8.2

2. In your config.php file, add this:

    $cfg->pathtomagicdb = '/dev/null';

Cheers,

Aaron

2 results