Update nonlab document path and add migration guide

This commit is contained in:
sas.fajri
2026-05-16 11:11:52 +07:00
parent 865e4c606c
commit 7228d17924
4 changed files with 249 additions and 5 deletions

View File

@@ -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));

View File

@@ -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));