From: hickert Date: Wed, 17 Nov 2010 09:15:28 +0000 (+0000) Subject: Updated handling of uploaded files, thanks to bcooksley X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c357434a1356be38f39906478354ff451367eae8;p=gosa.git Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20246 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_file.inc b/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_file.inc index 4c26fe32e..1e41cd9be 100644 --- a/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_file.inc +++ b/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_file.inc @@ -25,7 +25,7 @@ class TemplateWidget_file extends TemplateWidget function save_object() { if(isset($_POST["{$this->postName}_Upload"]) && isset($_FILES[$this->postName]['tmp_name'])){ - $this->value = file_get_contents($_FILES[$this->postName]['tmp_name']); + $this->value = file_get_contents(gosa_file_name($_FILES[$this->postName]['tmp_name'])); } if(isset($_POST["{$this->postName}_Remove"])) $this->value =""; }