Skip to content

Commit

Permalink
Fix for heic extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondbca committed Oct 24, 2024
1 parent 57cd1fe commit 9e9c990
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ledger/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9e9c990

Please sign in to comment.