Fix untyped/unknown mime file download #63

Merged
retoor merged 1 commits from :bugfix/file-download into main 2025-07-04 22:29:59 +02:00

View File

@ -114,7 +114,7 @@ class ChannelAttachmentView(BaseView):
response.headers["Content-Disposition"] = ( response.headers["Content-Disposition"] = (
f'attachment; filename="{channel_attachment["name"]}"' f'attachment; filename="{channel_attachment["name"]}"'
) )
response.headers["Content-Type"] = original_format response.headers["Content-Type"] = original_format or "application/octet-stream"
return response return response
async def post(self): async def post(self):