protected function StreamWrapper::getContentDispositionAttachment in AmazonS3 7.2
Return a string to use as a Content-Disposition header.
Return value
string The header value.
1 call to StreamWrapper::getContentDispositionAttachment()
File
- src/
StreamWrapper.php, line 393 - Drupal stream wrapper implementation for Amazon S3
Class
- StreamWrapper
- @file Drupal stream wrapper implementation for Amazon S3
Namespace
Drupal\amazons3Code
protected function getContentDispositionAttachment() {
// Encode the filename according to RFC2047.
return 'attachment; filename="' . mb_encode_mimeheader($this
->getBasename()) . '"';
}