final profile file name
This commit is contained in:
@@ -103,6 +103,7 @@ class UploadManager extends Model
|
||||
$out["message"] = "completed";
|
||||
$pieces = explode(".", $in['file_name']);
|
||||
$in['profile'] = "profile.".$pieces[1];
|
||||
$out['profile_file_name'] = $in['profile']; // this is the final filename
|
||||
$myFilesFolderFileName = $myFilesFolder.'/'. $in['profile'];
|
||||
$myfile = fopen($myFilesFolderFileName, "w") or die("Unable to open file!");
|
||||
$file_data = base64_decode($in["file_data"]);
|
||||
@@ -115,14 +116,6 @@ class UploadManager extends Model
|
||||
$data['member_id'] = $in["member_id"];
|
||||
$data['file_section'] = WRENCH_FILE_PROFILE;
|
||||
$out['upload_result'] = $this->specififBackendCall(WRENCHBOARD_SAVE_MEDIA,$data);
|
||||
/*
|
||||
* public function specififBackendCall($action,$data){
|
||||
$in["action"] = $action;
|
||||
$wrenchboard = new \App\Models\BackendModel();
|
||||
$ret = $wrenchboard->wrenchboard_api($data, $out);
|
||||
return $ret;
|
||||
}
|
||||
*/
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user