Explicitly add Content-Type header on emote upload

onboarding
Bram van den Heuvel 4 years ago committed by Sorunome
parent 6e5cd77357
commit 5df5a5e720

@ -214,9 +214,8 @@ class EmotesSettingsController extends State<EmotesSettings> {
}
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(() {

Loading…
Cancel
Save