3namespace Bitrix\Main\UI;
5use Bitrix\Main\AccessDeniedException;
6use Bitrix\Main\Localization\Loc;
7use Bitrix\Main\Security\Sign\Signer;
8use Bitrix\Main\UI\Uploader\Uploader;
13 protected $id =
"unknown";
26 if (!
$USER->IsAuthorized())
30 $params = unserialize(base64_decode(
$sign->unsign($signature,
"fileinput")), [
"allowed_classes" =>
false]);
34 $this->uploader->setHandler(
"onFileIsUploaded",
array($this,
"handleFile"));
44 return $sign->sign(base64_encode(serialize(
$params)),
"fileinput");
54 if (mb_strpos($file[
"files"][
$key][
"path"],
$docRoot) === 0)
55 $file[
"files"][
$key][
"path"] = str_replace(
"//",
"/",
"/".mb_substr($file[
"files"][
$key][
"path"], mb_strlen(
$docRoot)));
57 $file[
"files"][
$key][
"tmp_url"] = $file[
"files"][
$key][
"url"];
58 $file[
"type"] = $file[
"files"][
$key][
"type"];
65 $file[
"uploadId"] =
$hash;
71 if ($this->
id ==
"path")
const STATUS_INVALID_SIGN
static handleFileByPath(&$file)
static handleFileByHash($hash, &$file)
static sign($params=array())
handleFile($hash, &$file)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(empty($signedUserToken)) $key
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']