From: Aleksey Filippov Date: Sat, 28 Feb 2026 12:02:39 +0000 (+0300) Subject: fix(ERP-246): replace hardcoded OUT_DIR with relative path in UploadService X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=a657eefd1fe1bcfaa8ef7cc0e2f6a1802cbdd304;p=erp24_rep%2Fyii-erp24%2F.git 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 --- 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) {