• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/FileUploader/FileInfo.php
  • Класс: BitrixUIFileUploaderFileInfo
  • Вызов: FileInfo::jsonSerialize
public function jsonSerialize(): array
{
	return [
		'serverFileId' => $this->getId(),
		'serverId' => $this->getId(), // compatibility
		'type' => $this->getContentType(),
		'name' => $this->getName(),
		'size' => $this->getSize(),
		'width' => $this->getWidth(),
		'height' => $this->getHeight(),
		'treatImageAsFile' => $this->isImage() && $this->shouldTreatImageAsFile(),
		'downloadUrl' => $this->getDownloadUrl(),
		'serverPreviewUrl' => $this->getPreviewUrl(),
		'serverPreviewWidth' => $this->getPreviewWidth(),
		'serverPreviewHeight' => $this->getPreviewHeight(),
		'customData' => $this->customData !== null ? $this->getCustomData()->getValues() : [],
	];
}