From 5b0c582844641110b683aa47d838b2d5eb5f041f Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 7 Nov 2023 06:29:06 -0500 Subject: [PATCH] use config --- www-api/app/Controllers/WrenchMedia.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www-api/app/Controllers/WrenchMedia.php b/www-api/app/Controllers/WrenchMedia.php index 2ad33d08..1a07dad7 100644 --- a/www-api/app/Controllers/WrenchMedia.php +++ b/www-api/app/Controllers/WrenchMedia.php @@ -9,13 +9,14 @@ class WrenchMedia extends BaseController public $con_name = 'wrench_blog'; use ResponseTrait; protected $request; - public $savePath = WRENCHBOARD_UPLOAD_PATH; + public $savePath = WRENCHBOARD_UPLOAD_PATH; // not in use public function __construct() { $this->request = $request = \Config\Services::request(); //define('WRENCHBOARD_UPLOAD_PATH', '/opt/wrenchboard/TEST/'); $this->savePath= '/opt/wrenchboard/TEST/'; + $this->savePath= $this->getSiteConfigurations("system.primary_uploads"); // correct location }