original_string: protected static function loadPath($from, &$files=array(), $path='') {
  		$fileName = ($path === '') ? $from['name'] : apath_get($from['name'], $path);
  // 		debug('LoadPath('.$path.') - $fileName', $fileName);
  		if( empty($fileName) ) { return $files; }
  		if( is_array($fileName) ) {
  			if( $path!=='' ) { $path .= '/'; }
  			foreach( $fileName as $index => $fn ) {
  				static::loadPath($from, $files, $path.$index);
  			}
  // 			debug('loadPath() Files if name is an array', $files);
  			return $files;
  		}
  		apath_setp($files, $path, new static($fileName, apath_get($from, 'size/'.$path),
  			apath_get($from, 'tmp_name/'.$path), apath_get($from, 'error/'.$path)));
  // 		debug('loadPath() Files if value is set', $files);
  		return $files;
  // 		$files[]	= ;
  	}
code: protected static function loadPath($from, &$files=array(), $path='') {
  		$fileName = ($path === '') ? $from['name'] : apath_get($from['name'], $path);
  // 		debug('LoadPath('.$path.') - $fileName', $fileName);
  		if( empty($fileName) ) { return $files; }
  		if( is_array($fileName) ) {
  			if( $path!=='' ) { $path .= '/'; }
  			foreach( $fileName as $index => $fn ) {
  				static::loadPath($from, $files, $path.$index);
  			}
  // 			debug('loadPath() Files if name is an array', $files);
  			return $files;
  		}
  		apath_setp($files, $path, new static($fileName, apath_get($from, 'size/'.$path),
  			apath_get($from, 'tmp_name/'.$path), apath_get($from, 'error/'.$path)));
  // 		debug('loadPath() Files if value is set', $files);
  		return $files;
  // 		$files[]	= ;
  	}
code_tokens: protected static function loadPath ( $ from , & $ files = array ( ) , $ path = '' ) { $ fileName = ( $ path === '' ) ? $ from [ 'name' ] : apath_get ( $ from [ 'name' ] , $ path ) ; // 		debug('LoadPath('.$path.') - $fileName', $fileName); if ( empty ( $ fileName ) ) { return $ files ; } if ( is_array ( $ fileName ) ) { if ( $ path !== '' ) { $ path .= '/' ; } foreach ( $ fileName as $ index => $ fn ) { static :: loadPath ( $ from , $ files , $ path . $ index ) ; } // 			debug('loadPath() Files if name is an array', $files); return $ files ; } apath_setp ( $ files , $ path , new static ( $ fileName , apath_get ( $ from , 'size/' . $ path ) , apath_get ( $ from , 'tmp_name/' . $ path ) , apath_get ( $ from , 'error/' . $ path ) ) ) ; // 		debug('loadPath() Files if value is set', $files); return $ files ; // 		$files[]	= ; }
docstring: Get uploaded file from path
  
  @param array $from
  @param array $files
  @param string $path
  @return UploadedFile
docstring_tokens: Get uploaded file from path