diff --git a/lib/src/Connection.dart b/lib/src/Connection.dart index d6d7612..074c3c4 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(