From 4250fa9223b2f68aa13e1ddfa8ec7c3014df00fa Mon Sep 17 00:00:00 2001 From: Bram van den Heuvel Date: Sun, 29 Aug 2021 17:44:56 +0000 Subject: [PATCH] Explicitly add Content-Type header on emote upload --- lib/pages/settings_emotes.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/pages/settings_emotes.dart b/lib/pages/settings_emotes.dart index a41659e7..ba3a38cc 100644 --- a/lib/pages/settings_emotes.dart +++ b/lib/pages/settings_emotes.dart @@ -214,9 +214,8 @@ class EmotesSettingsController extends State { } final uploadResp = await showFutureLoadingDialog( context: context, - future: () => Matrix.of(context) - .client - .uploadContent(file.bytes, filename: file.name), + future: () => Matrix.of(context).client.uploadContent(file.bytes, + filename: file.name, contentType: file.mimeType), ); if (uploadResp.error == null) { setState(() {