• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/diskdispatcher.php
  • Класс: CWebDavDiskDispatcher
  • Вызов: CWebDavDiskDispatcher::processActionRollbackUpload
public function processActionRollbackUpload(array $params)
{
	$this->enableIgnoreQuotaError();
	$this->checkRequiredParams($params, array('token'));

	$token = $params['token'];
	if(!($tmpFile = CWebDavTmpFile::buildByName($token)))
	{
		throw new Exception('Not found file by token');
	}
	if($tmpFile->delete())
	{
		return $this->sendSuccess();
	}
	return $this->sendError('Bad attempt to delete token');
}