public static function imageArrayUpload($value, $applyFilter = false, $returnObject = false)
    {
        if (!empty($value) && is_array($value)) {
            $data = [];
    
            foreach ($value as $key => $item) {
                $image = static::imageUpload($item['imageId'], $applyFilter, true);
                if ($image) {
                    if ($item['caption']) {
                        $image->caption = $item['caption'];
                    }
    
                    $data[$key] = ($returnObject) ? $image : $image->toArray();
                }
            }
    
            return $data;
        }
    
        return [];
    }
public static function imageArrayUpload($value, $applyFilter = false, $returnObject = false)
    {
        if (!empty($value) && is_array($value)) {
            $data = [];
    
            foreach ($value as $key => $item) {
                $image = static::imageUpload($item['imageId'], $applyFilter, true);
                if ($image) {
                    if ($item['caption']) {
                        $image->caption = $item['caption'];
                    }
    
                    $data[$key] = ($returnObject) ? $image : $image->toArray();
                }
            }
    
            return $data;
        }
    
        return [];
    }
public static function imageArrayUpload ( $ value , $ applyFilter = false , $ returnObject = false ) { if ( ! empty ( $ value ) && is_array ( $ value ) ) { $ data = [ ] ; foreach ( $ value as $ key => $ item ) { $ image = static :: imageUpload ( $ item [ 'imageId' ] , $ applyFilter , true ) ; if ( $ image ) { if ( $ item [ 'caption' ] ) { $ image -> caption = $ item [ 'caption' ] ; } $ data [ $ key ] = ( $ returnObject ) ? $ image : $ image -> toArray ( ) ; } } return $ data ; } return [ ] ; }
Get the full array for the specific zaa-file-image-upload type

```php
'imageList' => BlockHelper::ImageArrayUpload($this->getVarValue('images')),
```

Each array item will have all file query item data and a caption key.

@param string|int $value The specific var or cfg fieldvalue.
@param boolean|string $applyFilter To apply a filter insert the identifier of the filter.
@param boolean $returnObject Whether the storage object should be returned or an array.
@return array Returns an array in any case, even an empty array.
Get the full array for the specific zaa - file - image - upload type