From d60dd13581dc2ca279c826e157608fefbc71c147 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Thu, 11 Aug 2022 20:09:26 +0300 Subject: [PATCH] [#294] added additional inline serving mime types --- tools/filesystem/filesystem.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/filesystem/filesystem.go b/tools/filesystem/filesystem.go index ecb6af88..306451bc 100644 --- a/tools/filesystem/filesystem.go +++ b/tools/filesystem/filesystem.go @@ -178,8 +178,14 @@ func (s *System) DeletePrefix(prefix string) []error { } var inlineServeContentTypes = []string{ - "image/png", "image/jpg", "image/jpeg", "image/gif", - "video/mp4", "video/3gpp", "video/quicktime", "video/x-ms-wmv", + // image + "image/png", "image/jpg", "image/jpeg", "image/gif", "image/webp", "image/x-icon", "image/bmp", + // video + "video/webm", "video/mp4", "video/3gpp", "video/quicktime", "video/x-ms-wmv", + // audio + "audio/basic", "audio/aiff", "audio/mpeg", "audio/midi", "audio/wave", + // document + "application/pdf", } // Serve serves the file at fileKey location to an HTTP response.