diff --git a/assets/downloads/test-download.txt b/assets/downloads/test-download.txt new file mode 100644 index 0000000..4bfea95 --- /dev/null +++ b/assets/downloads/test-download.txt @@ -0,0 +1,21 @@ +Thank You for Using WinterCMS! +================================ + +Thank you for using WinterCMS and for being part of our community. + +WinterCMS is an open-source content management system built to help +developers create and maintain websites with flexibility and ease. + +This file is provided by the Winter.Test plugin as an example download. +If you can read this message, the download link is working correctly! + +We appreciate your support and hope you enjoy building with WinterCMS. + +Learn more: +https://wintercms.com/ + +Source code: +https://github.com/wintercms/winter + +---------------------------------------- +WinterCMS — Open source. Community driven. diff --git a/controllers/Countries.php b/controllers/Countries.php index a0da8e1..dd7740c 100644 --- a/controllers/Countries.php +++ b/controllers/Countries.php @@ -51,8 +51,8 @@ public function preview() public function download() { sleep(3); - return Response::download(base_path('modules/backend/assets/images/logo.svg'), 'logo.svg', [ - 'Content-Type' => 'image/svg', + return Response::download(base_path('plugins/winter/test/assets/downloads/test-download.txt'), 'winter-download.txt', [ + 'Content-Type' => 'text/plain', ]); }