From 084c6123f0a0fbf05ed4c0d776f05e084d9ecc58 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Fri, 18 Feb 2011 11:21:43 +0000 Subject: added new EasyGiant library --- h-source/Library/Files/Upload.php | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'h-source/Library/Files/Upload.php') diff --git a/h-source/Library/Files/Upload.php b/h-source/Library/Files/Upload.php index 47289fd..466582c 100755 --- a/h-source/Library/Files/Upload.php +++ b/h-source/Library/Files/Upload.php @@ -1,7 +1,22 @@ . if (!defined('EG')) die('Direct access not allowed!'); @@ -41,7 +56,7 @@ class Files_Upload 'createFolderAction'=>'createFolderAction', 'uploadFileAction'=>'uploadFileAction', 'maxFileSize' => 3000000, - 'language' => 'eng', + 'language' => 'Eng', 'allowedExtensions'=>'jpg,jpeg,png,gif,txt', 'fileUploadKey' => 'userfile' ); @@ -68,6 +83,12 @@ class Files_Upload } + //change a resulting string + public function setString($key,$value) + { + $this->_resultString->string[$key] = $value; + } + //obtain the current directory public function setDirectory($directory = null) { -- cgit v1.2.3