This commit is contained in:
Shish 2023-01-11 10:12:19 +00:00
parent f0c8affc07
commit 91b354f6f8

View file

@ -273,6 +273,7 @@ class BasePage
if (!is_null($this->filename)) {
header('Content-Disposition: ' . $this->disposition . '; filename=' . $this->filename);
}
assert($this->file, "file should not be null with PageMode::FILE");
// https://gist.github.com/codler/3906826
$size = filesize($this->file); // File size