$notification->push(sprintf(_("Unable to delete file %s: %s"), $item, $e->getMessage()), 'horde.error'); } } } } } break; case 'upload_file': if ($edit_perms) { for ($i = 1, $l = count($_FILES); $i <= $l; ++$i) { $val = 'file_upload_' . $i; if (isset($_FILES[$val]) && $_FILES[$val]['error'] != 4) { try { $browser->wasFileUploaded($val); $filename = Horde_Util::dispelMagicQuotes($_FILES[$val]['name']); Gollem::writeFile($old_dir, $filename, $_FILES[$val]['tmp_name']); Gollem::expireCache($old_dir); $notification->push(sprintf(_("File received: %s"), $filename), 'horde.success'); } catch (Gollem_Exception $e) { $notification->push($e, 'horde.error'); } } } } break; case 'copy_items': case 'cut_items': if ($edit_perms) { $action = $vars->actionID == 'copy_items' ? 'copy' : 'cut'; if (is_array($vars->items) && count($vars->items)) { foreach ($vars->items as $item) {