public function makeUrlToUploadedFile($model, $path_pattern = null, array $model_map = array(), $domain = null)
	{
		$pattern = $path_pattern
			?: $this->getConfig('http.path_pattern', '');

		if (is_null($domain))
		{
			$domain = $this->getConfig('http.domain', '');
		}

		$path = $this->interpolator->resolvePath($pattern, $model, $model_map)->getResult();

		$path = rtrim($domain, '/') . '/' . ltrim($path, '/');

		return $path;
	}