From 9e9c9903bf807fbe296857bc2db0dba9d987a5b7 Mon Sep 17 00:00:00 2001 From: Jason Moore Date: Thu, 24 Oct 2024 16:33:39 +0800 Subject: [PATCH] Fix for heic extensions --- ledger/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ledger/views.py b/ledger/views.py index 78d0c4de0..3c563ecf7 100644 --- a/ledger/views.py +++ b/ledger/views.py @@ -62,7 +62,8 @@ def getAppFile(request,file_id,extension): return HttpResponse(the_data, content_type="application/vnd.ms-outlook") if extension == 'eml': return HttpResponse(the_data, content_type="application/vnd.ms-outlook") - + if extension == 'heic': + return HttpResponse(the_data, content_type="image/heic") return HttpResponse(the_data, content_type=mimetypes.types_map['.'+str(extension)]) else: