public function get() { if (is_string($this->_value)) { $dataP = CoOrg::getDataPath($this->_dataPath); return CoOrg::config()->get('path').$dataP.'/'.$this->_value; } else if ($this->_value && $this->_value instanceof IFileUpload && $this->_value->isValid()) { return CoOrg::config()->get('path').$this->_value->temppath(); } else if ($this->_oldValue) { $dataP = CoOrg::getDataPath($this->_dataPath); return CoOrg::config()->get('path').$dataP.'/'.$this->_oldValue; } else { return null; } }
public static function getUploadManager() { return new DataManager(CoOrg::getDataPath('.session-uploads/'.session_id())); }