From 9f2d488758408f35ae2dd86d5ab1dfe4ae47037f Mon Sep 17 00:00:00 2001 From: Jean-Fabien Barrios Date: Fri, 3 Dec 2010 00:28:30 +0000 Subject: [PATCH] BUGFIX File upload not working when open_basedir is set #5547 git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@114471 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/AssetAdmin.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index 84c3b782..520d483f 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -200,12 +200,6 @@ JS } if($tmpFile['tmp_name']) { - // Workaround open_basedir problems - if(ini_get("open_basedir")) { - $newtmp = TEMP_FOLDER . '/' . $tmpFile['name']; - move_uploaded_file($tmpFile['tmp_name'], $newtmp); - $tmpFile['tmp_name'] = $newtmp; - } // validate files (only if not logged in as admin) if(!File::$apply_restrictions_to_admin && Permission::check('ADMIN')) {