Code

Updated handling of uploaded files, thanks to bcooksley
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Nov 2010 09:15:05 +0000 (09:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Nov 2010 09:15:05 +0000 (09:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20240 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/main.php

index 8fd60d417cc3ec17b41c9934f18e606be47b288f..41fb70d17b90419eb0489095c02935eabe312018 100644 (file)
@@ -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"){