src/GenericFile.php
public function makePathToUploadedFile($model, $path_pattern = null, array $model_map = array())
	{
		$pattern = $path_pattern ?: $this->getConfig('store.path_pattern', '');

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

		$path    = $this->getStoreRootPath() . '/' . ltrim($path, '/');

		return $path;
	}
public function makePathToUploadedFile($model, $path_pattern = null, array $model_map = array())
	{
		$pattern = $path_pattern ?: $this->getConfig('store.path_pattern', '');

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

		$path    = $this->getStoreRootPath() . '/' . ltrim($path, '/');

		return $path;
	}
public function makePathToUploadedFile ( $ model , $ path_pattern = null , array $ model_map = array ( ) ) { $ pattern = $ path_pattern ? : $ this -> getConfig ( 'store.path_pattern' , '' ) ; $ path = $ this -> interpolator -> resolvePath ( $ pattern , $ model , $ model_map ) -> getResult ( ) ; $ path = $ this -> getStoreRootPath ( ) . '/' . ltrim ( $ path , '/' ) ; return $ path ; }
Full path to uploaded file

@param array|object $model
@param string|null  $path_pattern
@param array        $model_map

@return string
Full path to uploaded file