Page MenuHomePhabricator

[survey] render CSV in browser rather than as a download link
Closed, ResolvedPublic

Description

The index page https://wmde-techwishes-survey.wmcloud.org/2022/ makes files available for immediate download, which is slightly inconvenient. Better would be to somehow render (either raw or with a pretty-printer) as well as make downloadable. In other words, replace the index listing with a smarter index.php .

Event Timeline

Implemented with the following apache config:

<Files "*.csv">
  Header set Content-Type "text/plain; charset=utf-8"
</Files>

Now the files can be viewed directly, or saved.

awight claimed this task.
awight moved this task from Demo to Done on the WMDE-TechWish-Sprint-2022-01-05 board.