From 568a12e254bbcfbdbec5c239503a71e63d97dfe1 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 17 Apr 2018 11:49:21 -0700 Subject: [PATCH] nginx: Add PDF files to the content-types list. Previously, user-uploaded PDF files were not properly rendered by browsers with the local uploads backend, because we weren't setting the correct content-type. --- puppet/zulip/files/nginx/zulip-include-frontend/uploads.types | 2 ++ 1 file changed, 2 insertions(+) diff --git a/puppet/zulip/files/nginx/zulip-include-frontend/uploads.types b/puppet/zulip/files/nginx/zulip-include-frontend/uploads.types index 20ba343269..c6a39a64b1 100644 --- a/puppet/zulip/files/nginx/zulip-include-frontend/uploads.types +++ b/puppet/zulip/files/nginx/zulip-include-frontend/uploads.types @@ -2,6 +2,8 @@ types { text/plain txt; + application/pdf pdf; + image/gif gif; image/jpeg jpeg jpg; image/png png;