From 1e070656da8f0d4be01716a049fdf55bfe30f9f4 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 23 Oct 2019 15:53:00 +0000 Subject: [PATCH] [Upload] Make all file names lower case --- lib/src/Connection.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Connection.dart b/lib/src/Connection.dart index d6d76123..074c3c4f 100644 --- a/lib/src/Connection.dart +++ b/lib/src/Connection.dart @@ -292,7 +292,7 @@ class Connection { dynamic fileBytes; if (client.homeserver != "https://fakeServer.notExisting") fileBytes = file.bytes; - String fileName = file.path.split("/").last; + String fileName = file.path.split("/").last.toLowerCase(); String mimeType = mime(file.path); print("[UPLOADING] $fileName, type: $mimeType, size: ${fileBytes?.length}"); final dynamic resp = await jsonRequest(