You are here

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()
StreamWrapper::getExternalUrl in src/StreamWrapper.php

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\amazons3

Code

protected function getContentDispositionAttachment() {

  // Encode the filename according to RFC2047.
  return 'attachment; filename="' . mb_encode_mimeheader($this
    ->getBasename()) . '"';
}