diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index b75c0c83d6ca..a1c0d1e3ef2f 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -866,7 +866,7 @@ class InvoiceController extends BaseController $file = $invoice->service()->getInvoicePdf($contact); - $headers = ['Content-Type' => 'application/pdf']; + $headers = ['Content-Type' => 'application/pdf', 'filename' => basename($file)]; if (request()->input('inline') == 'true') { $headers = array_merge($headers, ['Content-Disposition' => 'inline']);