fix: files get needlessly lowercased
relates to https://gitlab.com/famedly/app/-/issues/1755
This commit is contained in:
parent
029be99c7c
commit
029a4ae77a
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue