private static function createUploadedFile(array $value)
    {
        // Flatten file if is nested.
        if (is_array($value['tmp_name'])) {
            return static::getFlattenFileData($value);
        }

        return new UploadedFile(
            $value['tmp_name'],
            $value['size'],
            $value['error'],
            $value['name'],
            $value['type']
        );
    }
private static function createUploadedFile(array $value)
    {
        // Flatten file if is nested.
        if (is_array($value['tmp_name'])) {
            return static::getFlattenFileData($value);
        }

        return new UploadedFile(
            $value['tmp_name'],
            $value['size'],
            $value['error'],
            $value['name'],
            $value['type']
        );
    }
private static function createUploadedFile ( array $ value ) { // Flatten file if is nested. if ( is_array ( $ value [ 'tmp_name' ] ) ) { return static :: getFlattenFileData ( $ value ) ; } return new UploadedFile ( $ value [ 'tmp_name' ] , $ value [ 'size' ] , $ value [ 'error' ] , $ value [ 'name' ] , $ value [ 'type' ] ) ; }
Create an UploadedFile object for every uploaded file specifications.

If an element is array, will call getFlattenFileData() to normalize them to
a standard nested file list.

@param   array $value $_FILES  struct.

@return  UploadedFileInterface|UploadedFileInterface[]
Create an UploadedFile object for every uploaded file specifications .