public function getUploadedFiles($step, array $pool = null, array $files = null)
    {
        // Result is empty if no files at all are uploaded ...
        $result = [];

        // 1. Get files for this step from pool
        if (null !== $pool && count($pool) > 0) {
            $result = (isset($pool[Doozr_Form_Service_Constant::IDENTIFIER_FILES][$step])) ?
                $pool[Doozr_Form_Service_Constant::IDENTIFIER_FILES][$step] :
                [];
        }

        // 2. Get uploaded files for this step - if any ...
        if (null !== $files && count($files) > 0) {
            $normalizedFiles = $this->extract($files);

            foreach ($normalizedFiles as $key => $value) {
                $result[$key] = $value;
            }
        }

        return $result;
    }
public function getUploadedFiles($step, array $pool = null, array $files = null)
    {
        // Result is empty if no files at all are uploaded ...
        $result = [];

        // 1. Get files for this step from pool
        if (null !== $pool && count($pool) > 0) {
            $result = (isset($pool[Doozr_Form_Service_Constant::IDENTIFIER_FILES][$step])) ?
                $pool[Doozr_Form_Service_Constant::IDENTIFIER_FILES][$step] :
                [];
        }

        // 2. Get uploaded files for this step - if any ...
        if (null !== $files && count($files) > 0) {
            $normalizedFiles = $this->extract($files);

            foreach ($normalizedFiles as $key => $value) {
                $result[$key] = $value;
            }
        }

        return $result;
    }
public function getUploadedFiles ( $ step , array $ pool = null , array $ files = null ) { // Result is empty if no files at all are uploaded ... $ result = [ ] ; // 1. Get files for this step from pool if ( null !== $ pool && count ( $ pool ) > 0 ) { $ result = ( isset ( $ pool [ Doozr_Form_Service_Constant :: IDENTIFIER_FILES ] [ $ step ] ) ) ? $ pool [ Doozr_Form_Service_Constant :: IDENTIFIER_FILES ] [ $ step ] : [ ] ; } // 2. Get uploaded files for this step - if any ... if ( null !== $ files && count ( $ files ) > 0 ) { $ normalizedFiles = $ this -> extract ( $ files ) ; foreach ( $ normalizedFiles as $ key => $ value ) { $ result [ $ key ] = $ value ; } } return $ result ; }
Returns uploaded files.

It does transfer the file to systems temporary location and store information about it for validation
(if required).

@param int   $step  Step to process
@param array $pool  Pool to use/parse as fallback (e.g. used when jump is active ...)
@param array $files Files array of PHP ($_FILES) to check for uploaded files

@author Benjamin Carl <opensource@clickalicious.de>

@return array Array containing file(s) information, for either uploaded or reloaded for step from store!
Returns uploaded files .