]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-417
authormarina <m.zozirova@gmail.com>
Wed, 28 May 2025 11:43:49 +0000 (14:43 +0300)
committermarina <m.zozirova@gmail.com>
Wed, 28 May 2025 11:43:49 +0000 (14:43 +0300)
erp24/services/FileService.php

index f67ca3dcb4864784f8bd5b1643837123eb241602..5fabb41b2417c4c7d2decf8daf6380b873cdd991 100755 (executable)
@@ -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));