Suggest correct filename on download

This commit is contained in:
Thomas Casteleyn
2020-07-08 16:35:56 +02:00
committed by Molkobain
parent 868c157ae4
commit 4f72336301

View File

@@ -143,6 +143,7 @@ if (file_exists($sDotExecutable))
else
{
header('Content-type: image/svg+xml');
header('Content-Disposition: inline; filename="'.$sClass.'.svg"');
readfile($sImageFilePath);
}
@unlink($sDotFilePath);
@@ -150,6 +151,7 @@ if (file_exists($sDotExecutable))
else
{
header('Content-type: image/png');
header('Content-Disposition: inline; filename="'.$sClass.'.png"');
readfile($sImageFilePath);
}