code/Forms/UploadField.php
protected function getEncodedItems()
    {
        $assetAdmin = AssetAdmin::singleton();
        $fileData = [];
        foreach ($this->getItems() as $file) {
            $fileData[] = $assetAdmin->getMinimalistObjectFromData($file);
        }
        return $fileData;
    }
protected function getEncodedItems()
    {
        $assetAdmin = AssetAdmin::singleton();
        $fileData = [];
        foreach ($this->getItems() as $file) {
            $fileData[] = $assetAdmin->getMinimalistObjectFromData($file);
        }
        return $fileData;
    }
protected function getEncodedItems ( ) { $ assetAdmin = AssetAdmin :: singleton ( ) ; $ fileData = [ ] ; foreach ( $ this -> getItems ( ) as $ file ) { $ fileData [ ] = $ assetAdmin -> getMinimalistObjectFromData ( $ file ) ; } return $ fileData ; }
Encode selected values for react

@return array
Encode selected values for react