From d7f957afd67cc578701b2fe1cc29806b14f3eabc Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Sat, 28 Jan 2023 15:37:59 +0530 Subject: [PATCH] datatdump timing Issues Fixes : ps --- api/application/controllers/Request_DataDump_Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/application/controllers/Request_DataDump_Controller.php b/api/application/controllers/Request_DataDump_Controller.php index 2a7678ad..fcf89cb8 100755 --- a/api/application/controllers/Request_DataDump_Controller.php +++ b/api/application/controllers/Request_DataDump_Controller.php @@ -1042,7 +1042,7 @@ class Request_DataDump_Controller extends REST_Controller { $s3result= $this->aws_s3->uploadFileToS3Bucket($bucketdata); if(is_object($s3result) && $s3result['ObjectURL'] != '' && $s3result['@metadata']['statusCode'] == 200) { - $_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$bucketkey); + $_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$bucketkey,'+7 days'); $update_fields = array('status' => "COMPLETED","file_path"=>$_uri); $this->Data_Dump_Model->updateRecords($update_fields,DATADUMPREQUEST,array('request_id' => $id)); log_message('ERROR','## URI Gotten ('.$_uri.') !');