- Модуль: disk
- Путь к файлу: ~/bitrix/modules/disk/lib/bitrix24disk/tmpfile.php
- Класс: BitrixDiskBitrix24DiskTmpFile
- Вызов: TmpFile::append
public function append($fileContent, array $params)
{
static::checkRequiredInputParams($params, array('endRange', 'fileSize'));
if($this->errorCollection->hasErrors())
{
return false;
}
if($this->isCloud())
{
$status = $this->appendContentCloud(
$fileContent,
$params['startRange'],
$params['endRange'],
$params['fileSize'],
$this->getContentType()
);
}
else
{
$status = $this->appendContentNonCloud($fileContent, $params['startRange'], $params['endRange'], $params['fileSize']);
}
if ($status)
{
$this->increaseReceivedSize($params['endRange'] - $params['startRange'] + 1);
}
return $status;
}