[Upload] Make all file names lower case
This commit is contained in:
parent
5f2d7c06d9
commit
1e070656da
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue