Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions assets/downloads/test-download.txt
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions controllers/Countries.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]);
}

Expand Down