mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:07:33 -05: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