From: marina Date: Wed, 28 May 2025 11:43:49 +0000 (+0300) Subject: ERP-417 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=3ef3390c238e86b2d0c425e9af3089300f1670f6;p=erp24_rep%2Fyii-erp24%2F.git ERP-417 --- diff --git a/erp24/services/FileService.php b/erp24/services/FileService.php index f67ca3dc..5fabb41b 100755 --- a/erp24/services/FileService.php +++ b/erp24/services/FileService.php @@ -127,7 +127,7 @@ class FileService if (!is_dir($filePath)) { mkdir($filePath, 0777, true); } - $uniqueFileName = pathinfo($file->name, PATHINFO_FILENAME) . '_' . time() . rand(100, 999) . '.' . $file->extension; + $uniqueFileName = pathinfo($file->name, PATHINFO_FILENAME) . '_' . time() . '_' . rand(100, 999) . '.' . $file->extension; $targetFile = $filePath . $uniqueFileName; Yii::warning('Saved file: ' . json_encode($targetFile, JSON_UNESCAPED_UNICODE));