Exemplo n.º 1
0
	/**
	 * Get maximum file size for all or specified file extension.
	 * 
	 * @deprecated 2.5 Please use Upload_Validator::getAllowedMaxFileSize() instead
	 * 
	 * @param string $ext
	 * @return int Filesize in bytes
	 */
	public function getAllowedMaxFileSize($ext = null) {
		Deprecation::notice('2.5', 'Use Upload_Validator::getAllowedMaxFileSize() instead.');
		return $this->validator->getAllowedMaxFileSize($ext);
	}
 /**
  * Get maximum file size for all or specified file extension.
  * 
  * @deprecated 2.5 Please use Upload_Validator::getAllowedMaxFileSize() instead
  * 
  * @param string $ext
  * @return int Filesize in bytes
  */
 public function getAllowedMaxFileSize($ext = null)
 {
     user_error('Upload::getAllowedMaxFileSize() is deprecated. Please use Upload_Validator::getAllowedMaxFileSize() instead', E_USER_NOTICE);
     return $this->validator->getAllowedMaxFileSize($ext);
 }