use config
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user