mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #00085
[Bug 514069] Re: Mahara needs to check MIME Type "application/x-zip-compressed" when importing LEAP2a zip file.
Hi Shen,
So is it Firefox that gave you the 'application/octet-stream' mimetype
or was it IE?
When you see that 'Site unavailable: A nonrecoverable error occurred'
message, there should be an error message in the apache error log. It
sounds like a different bug though, which probably has nothing to do
with the mime type at all, so it's probably best to create a new bug
report for it.
Richard
--
Mahara needs to check MIME Type "application/x-zip-compressed" when importing LEAP2a zip file.
https://bugs.launchpad.net/bugs/514069
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Status in Mahara ePortfolio: Fix Committed
Bug description:
If the MIME type of LEAP2a zip file is "application/x-zip-compressed", we can't import the file.
We need to fix admin/users/add.php to check MIME Type "application/x-zip-compressed" when importing LEAP2a zip file as below.
File: admin/users/add.php
Line: 202
[before]
if ($values['leap2afile']['type'] == 'application/zip') {
[after]
if ($values['leap2afile']['type'] == 'application/zip'||$values['leap2afile']['type'] == 'application/x-zip-compressed') {