code: public function getFileListData($sFieldName) {
  
          if(empty($sFieldName)) {
              return [];
          }
  
          /** @var Collection $obFileList */
          $obFileList = $this->$sFieldName;
          if($obFileList->isEmpty()) {
              return [];
          }
          
          $arResult = [];
          /** @var File $obFile */
          foreach($obFileList as $obFile) {
              if(empty($obFile) || !$obFile instanceof File) {
                  continue;
              }
              
              $arResult[] = $this->getFileDataValue($obFile);
          }
  
          return $arResult;
      }
docs: Get file list data
  @param $sFieldName
  @return array