From a657eefd1fe1bcfaa8ef7cc0e2f6a1802cbdd304 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Sat, 28 Feb 2026 15:02:39 +0300 Subject: [PATCH] fix(ERP-246): replace hardcoded OUT_DIR with relative path in UploadService Hardcoded path /var/www/erp24/api2/json caused Permission denied errors on production when log files were owned by non-www-data users. Using __DIR__ . '/../api2/json' makes the path deployment-agnostic. Co-Authored-By: Claude Sonnet 4.6 --- erp24/services/UploadService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/services/UploadService.php b/erp24/services/UploadService.php index 40614fca..bd74b951 100644 --- a/erp24/services/UploadService.php +++ b/erp24/services/UploadService.php @@ -55,9 +55,9 @@ use yii_app\records\WriteOffsProducts; class UploadService { const OUT_DIR = -// __DIR__ . "/../json"; + __DIR__ . "/../api2/json"; // "/www/api2/json"; - "/var/www/erp24/api2/json"; + //"/var/www/erp24/api2/json"; public static function processingUpload($result) { -- 2.39.5