diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/prado/framework/Web/UI/ActiveControls/TActiveFileUpload.php | 2 | ||||
-rw-r--r-- | lib/prado/framework/Web/UI/WebControls/TFileUpload.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/prado/framework/Web/UI/ActiveControls/TActiveFileUpload.php b/lib/prado/framework/Web/UI/ActiveControls/TActiveFileUpload.php index 7f11115..6f051ba 100755 --- a/lib/prado/framework/Web/UI/ActiveControls/TActiveFileUpload.php +++ b/lib/prado/framework/Web/UI/ActiveControls/TActiveFileUpload.php @@ -102,6 +102,8 @@ class TActiveFileUpload extends TFileUpload implements IActiveControl, ICallback $localName = str_replace('\\', '/', tempnam(Prado::getPathOfNamespace($this->getTempPath()),'')); parent::saveAs($localName); + $this->_localName = $localName; + $params = new TActiveFileUploadCallbackParams; $params->localName = $localName; $params->fileName = addslashes($this->getFileName()); diff --git a/lib/prado/framework/Web/UI/WebControls/TFileUpload.php b/lib/prado/framework/Web/UI/WebControls/TFileUpload.php index c8853c5..20f3c5e 100644 --- a/lib/prado/framework/Web/UI/WebControls/TFileUpload.php +++ b/lib/prado/framework/Web/UI/WebControls/TFileUpload.php @@ -47,7 +47,7 @@ class TFileUpload extends TWebControl implements IPostBackDataHandler, IValidata /** * @var string the name of the temporary file storing the uploaded file */ - private $_localName=''; + protected $_localName=''; /** * @var string the uploaded file mime type */ @@ -276,4 +276,3 @@ class TFileUpload extends TWebControl implements IPostBackDataHandler, IValidata } } - |