19declare(strict_types=1);
36 use HeaderBasedDeliveryHelper;
62 return is_readable($path_to_file);
79 public function deliver(
string $path_to_file,
bool $file_marked_to_delete): void
81 $response = $this->httpService->response()
82 ->withHeader(self::X_SENDFILE, realpath($path_to_file));
83 $this->httpService->saveResponse(
$response);
84 $this->httpService->sendResponse();
120 return unlink($path_to_file);
const X_SENDFILE_TEMPORARY
deliver(string $path_to_file, bool $file_marked_to_delete)
void
handleFileDeletion(string $path_to_file)
bool
doesFileExists(string $path_to_file)
@inheritDoc
prepare(string $path_to_file, ?FileStream $possible_stream)
bool
__construct(private Services $httpService)
PHP constructor.
supportsAttachmentDelivery()
Interface ilFileDeliveryType.
The base interface for all filesystem streams.