src/Factory/UploadedFilesFactory.php
protected static function build(array $file)
    {
        if (is_array($file['tmp_name'])) {
            return static::normalizeNested($file);
        }

        return new UploadedFile(
            $file['name'],
            $file['tmp_name'],
            $file['type'],
            $file['size'],
            $file['error']
        );
    }
protected static function build(array $file)
    {
        if (is_array($file['tmp_name'])) {
            return static::normalizeNested($file);
        }

        return new UploadedFile(
            $file['name'],
            $file['tmp_name'],
            $file['type'],
            $file['size'],
            $file['error']
        );
    }
protected static function build ( array $ file ) { if ( is_array ( $ file [ 'tmp_name' ] ) ) { return static :: normalizeNested ( $ file ) ; } return new UploadedFile ( $ file [ 'name' ] , $ file [ 'tmp_name' ] , $ file [ 'type' ] , $ file [ 'size' ] , $ file [ 'error' ] ) ; }
Builds the uploaded file from specification.

@param array $file The specification of uploaded file or a nested array

@return \Es\Http\UploadedFile The uploaded file
Builds the uploaded file from specification .