mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #00073
[Bug 514069] Re: Mahara needs to check MIME Type "application/x-zip-compressed" when importing LEAP2a zip file.
We've upgraded Mahara to 1.2.3 and the issue still exists. The error
message reads:
"This file has not been detected to be a zipfile or XML file"
In the add.php file, the related lines are as follows:
------------------------------------------------
$ziptypes = PluginArtefactFile::get_mimetypes_from_description('zip');
if (in_array($values['leap2afile']['type'], $ziptypes)) {
------------------------------------------------
--
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 Released
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') {