mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Default media upload file mime types to application/octet-stream so that uploading doesn't fail rust side
This commit is contained in:
committed by
Stefan Ceriu
parent
6fc8c31449
commit
de199382de
@@ -117,7 +117,7 @@ struct MediaUploadingPreprocessor {
|
||||
// Process unknown types as plain files
|
||||
guard let type = UTType(filenameExtension: newURL.pathExtension),
|
||||
let mimeType = type.preferredMIMEType else {
|
||||
return await processFile(at: newURL, mimeType: nil)
|
||||
return await processFile(at: newURL, mimeType: "application/octet-stream")
|
||||
}
|
||||
|
||||
if type.conforms(to: .image) {
|
||||
|
||||
Reference in New Issue
Block a user