• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/ui/fileinputreceiver.php
  • Класс: BitrixMainUIFileInputReceiver
  • Вызов: FileInputReceiver::__construct
function __construct($signature)
{
	global $USER;

	if (!$USER->IsAuthorized())
		throw new AccessDeniedException(Loc::getMessage("BXU_AccessDenied_Authorize"));

	$sign = new Signer;
	$params = unserialize(base64_decode($sign->unsign($signature, "fileinput")), ["allowed_classes" => false]);
	$this->id = $params["id"];

	$this->uploader = new Uploader($params);
	$this->uploader->setHandler("onFileIsUploaded", array($this, "handleFile"));
}