We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac418e8 commit 5ef05f8Copy full SHA for 5ef05f8
src/Dispatch.php
@@ -296,7 +296,7 @@ public function handleRequest(Request $request): Response
296
$response = ResourceFactory::create($resource, $contentHashMatch ? $this->_defaultCacheConfig : false);
297
if(BitWise::has($this->getBits(), self::FLAG_CONTENT_ATTACHMENT))
298
{
299
- $filename = pathinfo($fullPath, PATHINFO_FILENAME);
+ $filename = pathinfo($fullPath, PATHINFO_FILENAME) . '.' . $ext;
300
$response->headers->set('Content-Disposition', 'attachment; filename="' . $filename . '"');
301
}
302
return $response;
0 commit comments