Form::getFileLimitAction

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Form
  4. getFileLimitAction
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/form.php
  • Класс: Bitrix\Crm\Controller\Form
  • Вызов: Form::getFileLimitAction
public function getFileLimitAction(): array
{
	if (!$this->checkFormAccess())
	{
		return [];
	}

	$limitMb = WebForm\Limitations\DailyFileUploadLimit::instance()->getLimit();
	$currentBytes =  WebForm\Limitations\DailyFileUploadLimit::instance()->getCurrent();

	return [
		'limitMb' => $limitMb,
		'currentBytes' => $currentBytes,
		'canChange' => $this->getFormAccess(true),
	];
}

Добавить комментарий