From: Alan Date: Wed, 8 Feb 2023 03:43:52 +0000 (+0800) Subject: serve with original filename X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=14e0ba8e6f3337e150644b4c153ceabb25d7a9e1 serve with original filename --- diff --git a/Images.php b/Images.php index ee9b9687..c33e8f42 100644 --- a/Images.php +++ b/Images.php @@ -298,11 +298,11 @@ class Pman_Core_Images extends Pman } if (!$this->thumb) { if ($x->mimetype == $this->as_mimetype) { - $x->serveOnly($this->method); + $x->serveOnly($this->method, $img->filename); exit; } $x->convert( $this->as_mimetype); - $x->serve($this->method); + $x->serve($this->method, $img->filename); exit; } //echo "SKALING? $this->size";