"The total maximum files size cannot increase '%max%', but '%size%' was detected in sum." . " Please remove the unnecessary files.", ]; $this->_messageTemplates = array_merge($this->_messageTemplates, $_messageTemplates); if (isset($options['uploadedSize'])) { $this->_uploadedSize = $options['uploadedSize']; } } public function setUploadedSize($size) { $this->_uploadedSize = $size; return false; } public function getUploadedSize() { return $this->_uploadedSize; } protected function _getSize() { if ($this->_uploadedSize > 0) { $this->_size += $this->_uploadedSize; $this->_uploadedSize = 0; } return $this->_size; } }