From 97fb48328e063b78bfe316a2afa7811d3176c524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Tue, 19 Aug 2014 18:12:20 +0200 Subject: [PATCH] Fixed bug #726: Now attachments are in new window but inline --- taiga/projects/attachments/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taiga/projects/attachments/api.py b/taiga/projects/attachments/api.py index 31047506..9139bc34 100644 --- a/taiga/projects/attachments/api.py +++ b/taiga/projects/attachments/api.py @@ -107,7 +107,7 @@ class RawAttachmentView(generics.RetrieveAPIView): name = attachment.name response = http.HttpResponse() response['X-Accel-Redirect'] = "/{filepath}".format(filepath=name) - response['Content-Disposition'] = 'attachment;filename={filename}'.format( + response['Content-Disposition'] = 'inline;filename={filename}'.format( filename=os.path.basename(name)) return response