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 }