fix: files get needlessly lowercased

relates to https://gitlab.com/famedly/app/-/issues/1755
This commit is contained in:
Nicolas Werner 2022-09-20 10:59:22 +02:00
parent 029be99c7c
commit 029a4ae77a
1 changed files with 1 additions and 1 deletions

View File

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