Forex signature download : GWM

This commit is contained in:
Gowtham M 2025-10-31 10:50:26 +05:30
parent 9a7140f5ad
commit f8f6d10579

View File

@ -637,6 +637,8 @@ class MasterController extends ResourceController
public function forex_signature_upload() public function forex_signature_upload()
{ {
try {
$data = $this->request->getPost(); $data = $this->request->getPost();
// Handle file upload // Handle file upload
@ -657,14 +659,14 @@ class MasterController extends ResourceController
return $this->failValidationErrors(['passport_document' => 'Invalid file upload']); return $this->failValidationErrors(['passport_document' => 'Invalid file upload']);
} }
try {
$this->mailTemplateModel->set(['image_location' => $newName])->where('template_name','forex')->update(); $this->mailTemplateModel->set(['image_location' => $newName])->where('template_name','forex')->update();
return $this->respondCreated([ return $this->respond([
'status' => 201, 'status' => 201,
'message' => 'organization created successfully', 'message' => 'uploaded successfully',
'data' => $data 'data' => $data
]); ]);
} catch (\Exception $e) { } catch (\Exception $e) {