This commit is contained in:
root
2025-11-13 19:52:28 +03:00
parent 8aeeb05b7d
commit 807dec3b6c
4646 changed files with 163445 additions and 626017 deletions

View File

@@ -39,7 +39,6 @@ final class TempFile extends EO_TempFile
$chunk->setFile($newFile);
}
$tempFile = null;
if ($chunk->isOnlyOne())
{
// Cloud and local files are processed by CFile::SaveFile.

View File

@@ -29,7 +29,7 @@ class TempFileAgent
$agentName = '\\' . __METHOD__ . '();';
$agents = \CAgent::getList(['ID' => 'DESC'], [
'MODULE_ID' => 'ui',
'NAME' => $agentName,
'=NAME' => $agentName,
]);
if ($agent = $agents->fetch())

View File

@@ -9,6 +9,7 @@ use Bitrix\Main\ORM\Fields;
use Bitrix\Main\ORM\Fields\Relations\Reference;
use Bitrix\Main\ORM\Query\Join;
use Bitrix\Main\Type\DateTime;
use Bitrix\Main\UuidGenerator;
/**
* Class TempFileTable
@@ -50,13 +51,7 @@ class TempFileTable extends Data\DataManager
->configureUnique(true)
->configureNullable(false)
->configureDefaultValue(static function () {
return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
mt_rand(0, 0xffff), mt_rand(0, 0xffff),
mt_rand(0, 0xffff),
mt_rand(0, 0x0fff) | 0x4000,
mt_rand(0, 0x3fff) | 0x8000,
mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
);
return UuidGenerator::generateV4();
})
->configureSize(36)
,