Merge branch 'nico/uppercase-files' into 'main'

fix: files get needlessly lowercased

See merge request famedly/company/frontend/famedlysdk!1140
This commit is contained in:
Krille Fear 2022-09-20 09:12:59 +00:00
commit d77b8476bc
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class MatrixFile {
: mimeType = mimeType ??
lookupMimeType(name, headerBytes: bytes) ??
'application/octet-stream',
name = name.split('/').last.toLowerCase();
name = name.split('/').last;
/// derivatives the MIME type from the [bytes] and correspondingly creates a
/// [MatrixFile], [MatrixImageFile], [MatrixAudioFile] or a [MatrixVideoFile]