From: hickert Date: Wed, 17 Nov 2010 09:15:05 +0000 (+0000) Subject: Updated handling of uploaded files, thanks to bcooksley X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=12a1de960b51206e8dcc3fc64ccc618d3a70af45;p=gosa.git Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20240 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index 8fd60d417..41fb70d17 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -53,18 +53,6 @@ $clicks = session::get('clicks'); $clicks ++ ; session::set('clicks', $clicks); - -/* On some systems we can not operate on uploaded tmp files. We need to - * explicitely copy them first - */ -foreach($_FILES as $postName => $entry){ - $tempfile = tempnam(sys_get_temp_dir(), 'GOsa'); - if(move_uploaded_file($_FILES[$postName]['tmp_name'], $tempfile)){ - $_FILES[$postName]['tmp_name'] = $tempfile; - } -} - - pathNavigator::clear(); if ($_SERVER["REQUEST_METHOD"] == "POST"){