Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BinaryFileResponse.php

function BinaryFileResponse::deleteFileAfterSend

If this is set to true, the file will be unlinked after the request is sent Note: If the X-Sendfile header is used, the deleteFileAfterSend setting will not be used.

Return value

$this

File

vendor/symfony/http-foundation/BinaryFileResponse.php, line 385

Class

BinaryFileResponse
BinaryFileResponse represents an HTTP response delivering a file.

Namespace

Symfony\Component\HttpFoundation

Code

public function deleteFileAfterSend(bool $shouldDelete = true) : static {
    $this->deleteFileAfterSend = $shouldDelete;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal