Added quotes to view attachment view to stop truncating filenames
This commit is contained in:
parent
65aaf2c0a2
commit
fd7e9f798f
|
|
@ -1,7 +1,7 @@
|
|||
<?php if (file_exists($attachment['Attachment']['file'])) {
|
||||
header('Content-Description: File Transfer');
|
||||
header('Content-Type: application/octet-stream');
|
||||
header('Content-Disposition: attachment; filename='.basename($attachment['Attachment']['filename']));
|
||||
header('Content-Disposition: attachment; filename="'.basename($attachment['Attachment']['filename']).'"');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Expires: 0');
|
||||
header('Cache-Control: must-revalidate');
|
||||
|
|
|
|||
Loading…
Reference in a new issue