checkCsrf()) { $artlib = TikiLib::lib('art'); $fname = $_FILES['csvlist']['tmp_name']; $msgs = []; $result = $artlib->import_csv($fname, $msgs); if ($result) { Feedback::success(tr('File %0 succesfully imported.', $_FILES['csvlist']['name'])); } elseif (! empty($msgs)) { Feedback::error(['mes' => $msgs]); } }