From 1f21a51d85864ebe1a25029eb5b9b41b95dc6c2e Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Nov 2010 09:15:59 +0000 Subject: [PATCH] Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20254 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/services/kiosk/class_goKioskService.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc b/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc index b07f09b70..8b49ea30b 100644 --- a/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc +++ b/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc @@ -121,12 +121,13 @@ class goKioskService extends goService{ if((isset($_POST['profileAdd']))&&(isset($_FILES['newProfile'])) && $this->acl_is_writeable("")){ $file = $_FILES['newProfile']; if(!file_exists($this->baseDir.$file['name'])){ + $filename = gosa_file_name($file['tmp_name']); $tmp = array( 'url' => "" , 'name' => $file['name'] , 'initial' => FALSE, - 'tmp_name'=> $file['tmp_name'], - 'content' => file_get_contents($file['tmp_name']), + 'tmp_name'=> $filename, + 'content' => file_get_contents($filename), 'exists' => TRUE); -- 2.30.2