mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
add filename to headers for inline files
This commit is contained in:
parent
e2ef82b266
commit
f6e740b582
@ -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']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user