Forex signature download : GWM
This commit is contained in:
parent
9a7140f5ad
commit
f8f6d10579
@ -637,6 +637,8 @@ class MasterController extends ResourceController
|
||||
public function forex_signature_upload()
|
||||
{
|
||||
|
||||
try {
|
||||
|
||||
$data = $this->request->getPost();
|
||||
|
||||
// Handle file upload
|
||||
@ -657,14 +659,14 @@ class MasterController extends ResourceController
|
||||
return $this->failValidationErrors(['passport_document' => 'Invalid file upload']);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
|
||||
$this->mailTemplateModel->set(['image_location' => $newName])->where('template_name','forex')->update();
|
||||
|
||||
|
||||
return $this->respondCreated([
|
||||
return $this->respond([
|
||||
'status' => 201,
|
||||
'message' => 'organization created successfully',
|
||||
'message' => 'uploaded successfully',
|
||||
'data' => $data
|
||||
]);
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user