Update nonlab document path and add migration guide
This commit is contained in:
@@ -520,7 +520,7 @@ class Patient extends MY_Controller
|
||||
$prm = $this->sys_input;
|
||||
$userid = $this->sys_user["M_UserID"];
|
||||
// $path = "/home/one/project/one/one-media/one-image-nonlab/";
|
||||
$path = "/home/one/project/one/one-media/one-document-nonlab/";
|
||||
$path = "/mnt/volume_sgp1_1778902074763/one-document-nonlab/";
|
||||
// file_put_contents("/home/one/project/one/pettycash-media/attachment/" . $newFilename, $file);
|
||||
// if (file_exists($path)) {
|
||||
// print_r("File path exist");
|
||||
@@ -591,7 +591,7 @@ class Patient extends MY_Controller
|
||||
$soid = $this->input->post('soid');
|
||||
$error = [];
|
||||
|
||||
$path = '/home/one/project/one/one-media/one-document-nonlab/';
|
||||
$path = '/mnt/volume_sgp1_1778902074763/one-document-nonlab/';
|
||||
//echo $path;
|
||||
$config['upload_path'] = $path;
|
||||
$config['allowed_types'] = 'jpg|jpeg|png|gif|pdf';
|
||||
@@ -726,7 +726,7 @@ class Patient extends MY_Controller
|
||||
}
|
||||
function downloadfile(string $fileName)
|
||||
{
|
||||
$file_path = "/home/one/project/one/one-media/one-document-nonlab/" . $fileName;
|
||||
$file_path = "/mnt/volume_sgp1_1778902074763/one-document-nonlab/" . $fileName;
|
||||
print_r(mime_content_type($file_path));
|
||||
header('Content-Type: ' . mime_content_type($file_path));
|
||||
header('Content-Length: ' . filesize($file_path));
|
||||
|
||||
@@ -520,7 +520,7 @@ class Patient extends MY_Controller
|
||||
$prm = $this->sys_input;
|
||||
$userid = $this->sys_user["M_UserID"];
|
||||
// $path = "/home/one/project/one/one-media/one-image-nonlab/";
|
||||
$path = "/home/one/project/one/one-media/one-document-nonlab/";
|
||||
$path = "/mnt/volume_sgp1_1778902074763/one-document-nonlab/";
|
||||
// file_put_contents("/home/one/project/one/pettycash-media/attachment/" . $newFilename, $file);
|
||||
// if (file_exists($path)) {
|
||||
// print_r("File path exist");
|
||||
@@ -634,7 +634,7 @@ class Patient extends MY_Controller
|
||||
}
|
||||
function downloadfile(string $fileName)
|
||||
{
|
||||
$file_path = "/home/one/project/one/one-media/one-document-nonlab/" . $fileName;
|
||||
$file_path = "/mnt/volume_sgp1_1778902074763/one-document-nonlab/" . $fileName;
|
||||
print_r(mime_content_type($file_path));
|
||||
header('Content-Type: ' . mime_content_type($file_path));
|
||||
header('Content-Length: ' . filesize($file_path));
|
||||
|
||||
Reference in New Issue
Block a user