• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/response/file.php
  • Класс: Bitrix\Main\Engine\Response\File
  • Вызов: File::__construct
public function __construct($path, $name = null, $contentType = 'application/octet-stream')
{
	parent::__construct();

	$this->setPath($path);
	$this->setContentType($contentType);

	if ($name === null)
	{
		$name = bx_basename($path);
	}

	$this->setName($name);
}