fixed senderid bulk upload, uploaded logo file on prod

This commit is contained in:
Kwesi Banson Jnr
2025-11-28 21:14:38 +00:00
parent d5ac7391dd
commit 063572463b
12 changed files with 42 additions and 47 deletions

View File

@@ -283,14 +283,12 @@ class SenderIdController extends Controller
public function getUploadReport($name){
$file = public_path('documents/general_files/') . $name;
$headers = ['Content-Type' => 'text/plain '];
return \Response::download($file, 'Sender ID Upload Report', $headers);
return \Response::download($file, 'Sender ID Upload Report.xlsx', $headers);
}
public function getSampleFile(){
$file = public_path('helper_documents/senderid_sample_file.xlsx');
#$extension = pathinfo($file, PATHINFO_EXTENSION);
$headers = ['Content-Type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'];
return \Response::download($file, 'Sender ID Sample Upload File', $headers);
return \Response::download($file, 'Sender ID Sample Upload File.xlsx', $headers);
}
public function edit($id){
$senderid = Models\SenderId::findOrFail($id);