$duManager = new SpecUploadFile(); $duManager->setUploadFileName($ulPath); } elseif ($uploadType == $SKELETAL) { $duManager = new SpecUploadFile(); $duManager->setUploadFileName($ulPath); $matchCatNum = true; } elseif ($uploadType == $DWCAUPLOAD) { $duManager = new SpecUploadDwca(); $duManager->setBaseFolderName($ulPath); $duManager->setIncludeIdentificationHistory($importIdent); $duManager->setIncludeImages($importImage); } $duManager->setCollId($collid); $duManager->setUspid($uspid); $duManager->setUploadType($uploadType); $duManager->setMatchCatalogNumber($matchCatNum); $duManager->setMatchOtherCatalogNumbers($matchOtherCatNum); if ($action == 'Automap Fields') { $autoMap = true; } $statusStr = ''; $isEditor = 0; if ($IS_ADMIN || array_key_exists("CollAdmin", $USER_RIGHTS) && in_array($collid, $USER_RIGHTS["CollAdmin"])) { $isEditor = 1; } if ($isEditor) { if ($action == "Save Primary Key") { $statusStr = $duManager->savePrimaryKey($dbpk); } } $duManager->readUploadParameters();