diff --git a/lib/src/client.dart b/lib/src/client.dart index 615a360..13c81c6 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -875,7 +875,6 @@ class Client { /// Uploads a file with the name [fileName] as base64 encoded to the server /// and returns the mxc url as a string. Future upload(MatrixFile file) async { - dynamic fileBytes; // For testing if (this.homeserver.toLowerCase() == "https://fakeserver.notexisting") { return "mxc://example.com/AQwafuaFswefuhsfAFAgsw"; @@ -890,7 +889,7 @@ class Client { streamedRequest.contentLength = await file.bytes.length; streamedRequest.sink.add(file.bytes); streamedRequest.sink.close(); - print("[UPLOADING] $fileName, size: ${fileBytes?.length}"); + print("[UPLOADING] $fileName"); var streamedResponse = await streamedRequest.send(); Map jsonResponse = json.decode( String.fromCharCodes(await streamedResponse.stream.first),