mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
allow application/x-zip-compressed for extensions
This commit is contained in:
parent
3448734024
commit
f1ad164f44
|
@ -78,7 +78,7 @@ elseif ($action == "upload") { /* {{{ */
|
|||
if($_FILES['userfile']['error']) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
}
|
||||
if($_FILES['userfile']['type'] != 'application/zip') {
|
||||
if(!in_array($_FILES['userfile']['type'], array('application/zip', 'application/x-zip-compressed'))) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
}
|
||||
// $extMgr = new SeedDMS_Extension_Mgr($settings->_rootDir."/ext", $settings->_cacheDir);
|
||||
|
|
Loading…
Reference in New Issue
Block a user