FI VIDEO : ps

This commit is contained in:
VE10-Sanjeev 2022-11-05 20:22:50 +05:30
parent 6673d75270
commit d4acbe2527

View File

@ -1819,8 +1819,13 @@ class Template_Management_Controller extends REST_Controller {
$bucket_name = LENDER_BUCKET_NAME_PREFIX . $pd_master[0]['fk_lender_id'];
// $imgs = array('selfie_with_person_met' => array('is_multiple' => 0,'img_name' => 'Selfie of the person contacted'),'name_board_seen' => array('is_multiple' => 1,'img_name' => 'Business Name Board'),'stock_image' => array('is_multiple' => 1,'img_name' => 'Stock Images'),'workplace_interior_image' => array('is_multiple' => 1,'img_name' => 'Work Place Interior'));
foreach ($pd_docs as $key => $value) {
if($value['image_key'] == 'video'){
$vdopath = 'pd' . $pd_master[0]['pd_id'] . '/video/' . $value['pd_document_name'];
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name, $vdopath, $time = '+1 week');
}else{
$picspath = 'pd' . $pd_master[0]['pd_id'] . '/' . $value['pd_document_name'];
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name, $picspath, '+5 minutes');
}
$pd_docs[$key]['doc_url'] = $singed_uri;
}