serve with original filename
authorAlan <alan@roojs.com>
Wed, 8 Feb 2023 03:43:52 +0000 (11:43 +0800)
committerAlan <alan@roojs.com>
Wed, 8 Feb 2023 03:43:52 +0000 (11:43 +0800)
Images.php

index ee9b968..c33e8f4 100644 (file)
@@ -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";