• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/uf/controller.php
  • Класс: BitrixDiskUfController
  • Вызов: Controller::processActionShowView
protected function processActionShowView()
{
	$attachedModel = $this->getAttachedModel();

	$file = $attachedModel->getFile();
	if(!$file->getView()->getId())
	{
		$this->end();
	}
	$fileName = $file->getView()->getName();
	$fileData = $file->getView()->getData();

	$cacheTime = Configuration::DEFAULT_CACHE_TIME;

	CFile::viewByUser($fileData, array('force_download' => false, 'cache_time' => $cacheTime, 'attachment_name' => $fileName));
}