diff --git a/controllers/front/AttachmentController.php b/controllers/front/AttachmentController.php index a4d789065..321e69237 100644 --- a/controllers/front/AttachmentController.php +++ b/controllers/front/AttachmentController.php @@ -1,6 +1,6 @@ context->language->id); if (!$a->id) Tools::redirect('index.php'); - + header('Content-Transfer-Encoding: binary'); header('Content-Type: '.$a->mime); header('Content-Length: '.filesize(_PS_DOWNLOAD_DIR_.$a->file));