upload issues
This commit is contained in:
@@ -33,10 +33,11 @@ class WrenchMedia extends BaseController
|
||||
return $endpoints;
|
||||
}
|
||||
|
||||
const WRENCH_FILE_PROFILE = 100;
|
||||
const WRENCH_FILE_PROFILE = 100;
|
||||
const WRENCH_FILE_MYFILE = 200;
|
||||
const WRENCH_FILE_CONTRACTS = 300;
|
||||
const WRENCH_FILE_CONTRACTS = 300;
|
||||
const WRENCH_FILE_FAMILY = 400;
|
||||
const WRENCH_FILE_JOBS = 500;
|
||||
|
||||
public function apigate(){
|
||||
log_message('critical', "Media gate Path GATE 001");
|
||||
@@ -72,6 +73,7 @@ class WrenchMedia extends BaseController
|
||||
#define WRENCH_FILE_MYFILE 200
|
||||
#define WRENCH_FILE_CONTRACTS 300
|
||||
#define WRENCH_FILE_FAMILY 400
|
||||
#define WRENCH_FILE_JOBS 500
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -93,11 +95,6 @@ class WrenchMedia extends BaseController
|
||||
exit();
|
||||
|
||||
|
||||
//We can check cache for the file or
|
||||
// OR
|
||||
// WE need to ask backend for this file now /
|
||||
// $call_backend = true;
|
||||
|
||||
$data = [
|
||||
'action' => WRENCHBOARD_GET_MEDIA,
|
||||
'sessionid' => $sessionId,
|
||||
@@ -111,20 +108,21 @@ class WrenchMedia extends BaseController
|
||||
$ret = $wrenchboard->wrenchboard_api($data, $out);
|
||||
$out['internal_return'] = $ret;
|
||||
}
|
||||
//print_r($out);
|
||||
///opt/wrenchboard/TEST/PROFILE/dfc9d601-780f-4d78-839f-422f0928f911/PORTRAIT/
|
||||
|
||||
|
||||
|
||||
switch($supportedSections[$fileSection]){
|
||||
case 'profile':
|
||||
case WRENCH_FILE_PROFILE:
|
||||
///opt/wrenchboard/TEST/PROFILE/3119b744-42ad-4834-bb83-b737588754ca/PORTRAIT
|
||||
$selectedFile = $this->savePath.'PROFILE/'.$out["member_uid"]."/PORTRAIT/". $out["saved_file_name"];
|
||||
break;
|
||||
|
||||
case 'family':
|
||||
case WRENCH_FILE_FAMILY:
|
||||
///opt/wrenchboard/TEST/PROFILE/3119b744-42ad-4834-bb83-b737588754ca/FAMILY/3119b744-42ad-4834-bb83-b737588754ca/
|
||||
$selectedFile = $this->savePath.'PROFILE/'.$out["member_uid"]."/FAMILY/family_uid/". $out["saved_file_name"];
|
||||
break;
|
||||
|
||||
case 'myfile':
|
||||
case WRENCH_FILE_MYFILE:
|
||||
$selectedFile = $this->savePath.'PROFILE/'.$out["member_uid"]."/MYFILES/". $out["saved_file_name"];
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user