diff options
author | ctrlaltca@gmail.com <> | 2011-12-21 12:55:05 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-12-21 12:55:05 +0000 |
commit | b26680c80e112cc91755fea84426f2d57beb4232 (patch) | |
tree | 82dfae906183cbbcc3b65ab6975c12d0a2ea3322 /framework/Web/UI/ActiveControls/TActiveFileUpload.php | |
parent | e542ea49ceb77ad48f144a9f4ab1eaaafe4dc198 (diff) |
fix #314
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveFileUpload.php')
-rwxr-xr-x | framework/Web/UI/ActiveControls/TActiveFileUpload.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveFileUpload.php b/framework/Web/UI/ActiveControls/TActiveFileUpload.php index 1a49c20d..8cc1fe9a 100755 --- a/framework/Web/UI/ActiveControls/TActiveFileUpload.php +++ b/framework/Web/UI/ActiveControls/TActiveFileUpload.php @@ -274,6 +274,7 @@ EOS; if(!$this->getPage()->getIsPostBack() && isset($_GET['TActiveFileUpload_InputId']) && isset($_GET['TActiveFileUpload_TargetId']) && $_GET['TActiveFileUpload_InputId'] == $this->getClientID()) { + // tricky workaround to intercept "uploaded file too big" error: real uploads happens in onFileUpload instead $this->_errorCode = UPLOAD_ERR_FORM_SIZE; $localName = str_replace('\\', '/', tempnam(Prado::getPathOfNamespace($this->getTempPath()),'')); $filename = addslashes($this->getFileName()); |