Feature #1029
Special handling for .diff/.patch attachments
| Status: | Closed | Start: | 2008-04-09 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | UI | |||
| Target version: | 0.8 | |||
| Resolution: | Fixed |
Description
I suppose it's your webserver's mime type config, but if I click on a diff attached to an issue, the browser thinks it's a binary file and wants to download it. Even better than fixing that, I think, would be to treat it specially (like images) and view it in something like the SCM diff viewer.
History
2008-04-09 22:07 - Rocco Stanzione
One alternative to special treatment of *.diff and *.patch... what Launchpad does is give you a checkbox to say the attachment is a patch. This could also trigger an indicator that someone has attached a resolution to an issue, which could be of use to developers.
2008-04-10 00:16 - Jean-Philippe Lang
I suppose it's your webserver's mime type config
Actually it's not my webserver, download is forced unless the attachment is an image:
source:/trunk/app/controllers/attachments_controller.rb#L26